Viewing 7 replies - 1 through 7 (of 7 total)
  • Anonymous User 13868920

    (@anonymized-13868920)

    Hi there,

    Can you please tell me what’s your PHP version? You can either check in your website’s hosting control panel or ask your hosting provider.

    Thread Starter joysaver

    (@joysaver)

    Hi there,

    Thanks for answering my call for help.

    PHP Version: 5.4.45

    Anonymous User 13868920

    (@anonymized-13868920)

    In the ‘class-wmp-themes.php’, on line 4, there’s a line of code that includes another file in a way that is not supported by PHP 5.2. You can see the source file here:

    https://github.com/appticles/wordpress-mobile-pack-backend/blob/master/inc/class-wmp-themes.php

    You can try modifying the file from your WP Mobile Pack installation and commenting that line by adding // in front of it, like this:

    // use Leafo\ScssPhp\Compiler;

    You can test it out and see if you still get the error. However, if you have PHP 5.2, it will not work to modify the color scheme or fonts for the mobile web app.

    PHP 5.4 is fully supported, but please make absolutely sure that this is the version that you are running on. Some hosting companies give you the option to choose the PHP version.

    Also, there is no reason why that error should appear on PHP5.4, you can see here that this error is quite common for PHP5.2:

    http://stackoverflow.com/questions/13960277/error-parse-error-syntax-error-unexpected-t-string-expecting-t-constant-encap

    Thread Starter joysaver

    (@joysaver)

    I commented out line 4 as you suggested and it returned this error: “Requires PHP 5.3 or above”

    How do I uninstall this plugin without access to dashboard?

    Thread Starter joysaver

    (@joysaver)

    I disabled the WordPress mobile pack plugin by renaming the plugin folder and that restored access to my dashboard.

    When you discover and fix the bug that caused this, would you please post an update in this thread so I can update it on my site.

    Thanks for your help.

    Anonymous User 13868920

    (@anonymized-13868920)

    From your latest messages, it does look like you are running on PHP5.2. I don’t know how you checked your PHP version, but if it was PHP 5.4.45, you wouldn’t see those warnings.

    We will have a new plugin release at the beginning of February that will handle these errors better. However, the plugin will not be fully compatible with PHP 5.2 and modifying the theme’s color scheme and fonts won’t work on this version of PHP.

    Not related to WP Mobile Pack, I do recommend to contact your hosting provider and upgrade to a newer PHP version (have at least PHP 5.3). Here is what WordPress recommends:

    “WordPress also works with PHP 5.2.4+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities.”

    Even if you decide not to use our plugin, I believe it is important to keep your site updated.

    Thread Starter joysaver

    (@joysaver)

    Thanks for your reply. I took the PHP version straight from the control panel detail. But, I will follow up with support to ensure my site is indeed up to date and secure.

    Thanks again for your reply and information. I’ll look for your update in February.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Syntax Error – what's happened and how do I fix it? Talk to me like I'm five’ is closed to new replies.