Support » Plugin: WP Mobile Detector » Broken after update to 1.7.9

Viewing 15 replies - 1 through 15 (of 15 total)
  • 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


    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>';" ) );

    I don’t even get an error, the page “loads” totally empty.

    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.

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

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

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



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

    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!


    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.

    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!

    Plugin Author websitezcom


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

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

    Plugin Author websitezcom


    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”.

    works flawless now, thanks for the quick fix

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Broken after update to 1.7.9’ is closed to new replies.