WordPress.org

Ready to get started?Download WordPress

Forums

WP Mobile Detector Mobile Plugin
[resolved] Broken after update to 1.7.9 (16 posts)

  1. danyi03
    Member
    Posted 1 year ago #

    After I installed the update, my wp site simply didn't load anymore. Neither of the site itself or the admin page. I had to delete the plugin files from the ftp to get everything working again.

    http://wordpress.org/extend/plugins/wp-mobile-detector/

  2. databell96
    Member
    Posted 1 year ago #

    I'm experiencing the same problem. I did the upgrade and this is the error I got:

    Parse error: syntax error, unexpected T_ENDIF in /usr/www/xxx/yyy/charleston/wp-content/plugins/wp-mobile-detector/functions.php on line 429

    This is line 429

    endif;

    It comes from this function:

    function websitez_check_monetization(){
    	global $wpdb,$table_prefix,$websitez_free_version;
    	$table = $table_prefix."options";
    	if($_GET['page'] == "websitez_config" || $_GET['page'] == "websitez_stats" || $_GET['page'] == "websitez_themes" || $_GET['page'] == "websitez_monetization"):
    		$monetization = get_option(WEBSITEZ_SHOW_MOBILE_ADS_NAME);
    		if($monetization == "false"){
    			$time = strtotime("+3 months", strtotime(get_option(WEBSITEZ_MONETIZATION_MESSAGE)));
    			$date = date("Y-m-d H:i:s", $time);
    			$current = date("Y-m-d H:i:s");
    			if($current >= $date):
    				add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p><strong><a href=\"admin.php?page=websitez_monetization\">".WEBSITEZ_PLUGIN_NAME." Monetization is disabled!</a></strong> You can <a href=\"admin.php?page=websitez_monetization&monetization=true\">enable monetization</a> or <a href=\"admin.php?page=websitez_monetization&hide=true\">hide</a> this message.</p></div>';" ) );
    			endif;
    		endif;
    	}
    }
  3. danyi03
    Member
    Posted 1 year ago #

    I don't even get an error, the page "loads" totally empty.

  4. databell96
    Member
    Posted 1 year ago #

    Hum. That's interesting. Just one big white screen o'death, eh?

    At least I did with the line number so at least we have a clue.

    Opened the file in Dreamweaver CC and even that pointed out a couple of errors in the code.

  5. geny80
    Member
    Posted 1 year ago #

    I have the same problem. It's possible to delete this plugin ot can I do something else?

  6. dsinteractive
    Member
    Posted 1 year ago #

    I have same problem. I do not code so need a really simple solution.

  7. dsinteractive
    Member
    Posted 1 year ago #

    If I delete this directory in ftp mode, will this solve the problem or create more?

    /htdocs/wp/wp-content/plugins/wp-mobile-detector

    Thanks

  8. danyi03
    Member
    Posted 1 year ago #

    I've done the same thing, solved the problem, delete it!

  9. andyflavoured
    Member
    Posted 1 year ago #

    Forgive me for not being a techy, but I have no idea how to get into an FTP site or identify the files in question. Please give me a step by step guide to getting my site back up and running!

    Thanks

  10. danyi03
    Member
    Posted 1 year ago #

    You need to ask your host provider about accessing your ftp. If you have access, look up and delete this folder: /htdocs/wp/wp-content/plugins/wp-mobile-detector

    After this, the whole plugin will be deleted, not just the update, but your site will be running fine.

  11. andyflavoured
    Member
    Posted 1 year ago #

    Found it eventually using File Manager, but it's not a native WP site so had to explore the directory structure before finding it. Phew!

  12. websitezcom
    Member
    Plugin Author

    Posted 1 year ago #

    This is now fixed. Please re-download the plugin.

  13. geny80
    Member
    Posted 1 year ago #

    how can i redownload the plugin if i cant login to administration panel?

  14. websitezcom
    Member
    Plugin Author

    Posted 1 year ago #

    It shouldn't cause you to not be able to login.

    Did you update any other plugins?

    If you login via FTP, you can delete the folder inside of "wp-content/plugins".

  15. danyi03
    Member
    Posted 1 year ago #

    works flawless now, thanks for the quick fix

  16. databell96
    Member
    Posted 1 year ago #

    Yep. all is good here. Thank you for the speedy update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic