• Resolved mwarbinek

    (@mwarbinek)


    I just installed this plugin and it won’t activate because there is a parse error on line 29 in the autostock.php file.

    Lines 29 & 30 are as follows:

    namespace Autostock;
    use Autostock;

    When I comment out these two lines, the plugin activates but fails to show in the main sidebar menu in WordPress.

    I know some about PHP, but I don’t know enough about using “namespace”. As I read though, there is a lot reference to “Class” usage with namespace and there is no such reference in your php file for the plugin.

    Is there something missing here?

    https://ww.wp.xz.cn/plugins/autostock/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Phillips

    (@dollar_dad)

    Are you using PHP 5.4+

    Thread Starter mwarbinek

    (@mwarbinek)

    Well, burn my britches, I thought the web host automatically changed everything to version 5.4 and they did not, the website was still set at 5.2 because they still allowed the legacy 5.2 to run.

    Now all seems to work, thanks. 🙂

    Plugin Author Kevin Phillips

    (@dollar_dad)

    Not a problem

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse Error – Unexpected String’ is closed to new replies.