• Resolved hyest

    (@hyest)


    Hi there, I’m using the latest version of wordpress 3.9.2 with the Avada theme and a few plugins. I’ve tried deactivating all plugins just in case but everytime I try to activate this plugin I get “Plugin could not be activated because it triggered a fatal error.” “
    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in wp-content/plugins/official-add-to-homescreen/includes/admin.php on line 14″

    Everything I’ve read that caused this error has to do with php version 5.3. I checked my cpanel and I’m running PHP 5.4.29 on Hostgator.

    Anything you think I can do to fix this issue? Really wanted to use your plugin. Thanks for your time.

    https://www.ads-software.com/plugins/official-add-to-homescreen/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wordcubiq

    (@wordcubiq)

    can you try a phpinfo()?

    Thread Starter hyest

    (@hyest)

    Sure, I did that, phpinfo gives a lot of information, anything particular to look for? Here’s the first block of data:

    PHP Version 5.2.17

    System Linux gator3304.hostgator.com 3.12.24 #1 SMP Thu Jul 10 04:59:56 CDT 2014 x86_64
    Build Date Jun 10 2014 15:48:39
    Configure Command ‘./configure’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-dbase’ ‘–enable-exif’ ‘–enable-fastcgi’ ‘–enable-ftp’ ‘–enable-gd-native-ttf’ ‘–enable-libxml’ ‘–enable-magic-quotes’ ‘–enable-mbstring’ ‘–enable-pdo=shared’ ‘–enable-soap’ ‘–enable-sockets’ ‘–enable-sqlite-utf8’ ‘–enable-wddx’ ‘–enable-zip’ ‘–prefix=/opt/php52’ ‘–with-bz2’ ‘–with-curl=/opt/curlssl/’ ‘–with-freetype-dir=/usr’ ‘–with-gd’ ‘–with-gettext’ ‘–with-imap=/opt/php_with_imap_client/’ ‘–with-imap-ssl’ ‘–with-jpeg-dir=/usr’ ‘–with-kerberos’ ‘–with-libexpat-dir=/usr’ ‘–with-mcrypt=/opt/libmcrypt/’ ‘–with-mhash=/opt/mhash/’ ‘–with-mime-magic’ ‘–with-mssql=/usr’ ‘–with-mysql’ ‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-mysqli=/usr/bin/mysql_config’ ‘–with-openssl=/opt/openssl’ ‘–with-openssl-dir=/opt/openssl’ ‘–with-pcre-regex’ ‘–with-pdo-mysql=shared’ ‘–with-pdo-sqlite=shared’ ‘–with-pic’ ‘–with-png-dir=/usr’ ‘–with-pspell’ ‘–with-sqlite=shared’ ‘–with-tidy’ ‘–with-ttf’ ‘–with-unixODBC=/usr’ ‘–with-xmlrpc’ ‘–with-xpm-dir=/usr’ ‘–with-xsl’ ‘–with-zlib’ ‘–with-zlib-dir=/usr’
    Server API CGI/FastCGI
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /opt/php52/lib
    Loaded Configuration File /opt/php52/lib/php.ini
    Scan this dir for additional .ini files (none)
    additional .ini files parsed (none)
    PHP API 20041225
    PHP Extension 20060613
    Zend Extension 220060519
    Debug Build no
    Thread Safety disabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, data, http, ftp, zip
    Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed

    Plugin Author wordcubiq

    (@wordcubiq)

    So it seems you actually have PHP 5.2. I believe the minimum requirement is 5.3.

    I’ll try to make the script 5.2 compatible but it’s not top priority.

    Thread Starter hyest

    (@hyest)

    Thanks Man, Jeez i’m blind after I did the phpinfo I didn’t realize it was php 5.2. I forgot a while back when hostgator upgraded to 5.4 that they gave the option to still use 5.2 for compatibility reasons. Anyways I set php config to use 5.4 for this website directory and the plugin activates good now.

    I was testing and only got it to work once but realized the “clear local storage” button worked wonders when messing with settings.

    I have a script running so that when the user clicks any links within the site except remote links it will stay in web app full screen mode. Anyways I have the following tags already added to my header : ` <meta name=”apple-mobile-web-app-capable” content=”yes” />
    <meta name=”apple-mobile-web-app-status-bar-style” content=”black” />`

    Do I still need the “Add Meta Tags” option selected? I’m not sure which meta tags exactly this plugin adds.

    Great work by the way!

    Plugin Author wordcubiq

    (@wordcubiq)

    yes, you should still add those meta tags. If you enable logging remember to pick the “web app capable” option as detection mechanism (in the advanced tab)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error as well, while activating, PHP version 5.4.29’ is closed to new replies.