• Resolved bassick19

    (@bassick19)


    I installed this plugin at home on my test WordPress site and it worked fine.

    I uploaded my WordPress site to a host and the site works fine. But now I’m trying to activate this plugin and I get this error msg.

    Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in /home2/…/wp-content/plugins/wp-db-table-editor/DBTableEditor.class.php on line 8

    Any help appreciated. Thanks

    https://www.ads-software.com/plugins/wp-db-table-editor/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bobbysmith007

    (@bobbysmith007)

    My guess would be that namespaces are not supported on your host due to a low version of php. Php must be 5.3 or above for namespaces. If you see that this is not the issue, please follow up.

    https://stackoverflow.com/questions/6473126/namespaces-in-php-5-2

    Thread Starter bassick19

    (@bassick19)

    Thanks for the response.

    I’m using Bluehost as my web host and the php is currently “5.4.24”. I do have the option of changing it to 5.6 if you think that might help.

    Unless you don’t have any more friendly suggestions, I will try to seek help with them. Thanks again.

    Plugin Author bobbysmith007

    (@bobbysmith007)

    hrm… well The above links claim that Php 5.4 should be sufficient, but if you are getting a syntax error on importing the namespace, it would seem *something* must be wrong.

    Line 8 and 9 are just importing the PHPSQL stuff so its easier to manipulate the queries being sent to the server.

    #8 use PHPSQL\Parser;
    #9 use PHPSQL\Creator;

    I am not sure what else to suggest as it has always worked for me.

    Thread Starter bassick19

    (@bassick19)

    Thanks for responding again. I called Bluehost support. After researching some things, they found out that even though my cPanel said my version of PHP was “5.4.24”, the “.htaccess” file for my domain was missing. Without that file, my site was using an earlier version of PHP even though the cPanel said otherwise..

    The support person replaced the file and edited it to make sure I was using the currect version of PHP.

    After those steps, I was able to activate the plugin.

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Host install error’ is closed to new replies.