• Resolved Jason Robinson

    (@jsrobinson)


    Version 1.3.3

    After installing and activating, I get:

    An error of type E_PARSE was caused in line 237 of the file /var/www/html/wp-content/plugins/index-wp-mysql-for-speed/code/admin.php. Error message: syntax error, unexpected ‘)’

    I can probably fix by adding a semicolon

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

    (@olliejones)

    Thanks for the report.

    The source code for that line is here:

    https://github.com/OllieJones/index-wp-mysql-for-speeed/blob/main/code/admin.php#L237

    Do you see the same source code when you install the plugin? Do you have php v7.2 or better?

    This admin.php code is loaded on every dashboard page load, and run when you use Tools > Index MySQL. If there were a syntax error there, it wouldn’t work anywhere. So, I’m not sure what is wrong; I deactivated, deleted, installed, and activated the plugin on a couple of my test installations with no trouble.

    Thread Starter Jason Robinson

    (@jsrobinson)

    My version has an extra comma in it. I removed it and things are working. You can consider this closed!

    Plugin Author OllieJones

    (@olliejones)

    Thanks for letting me know. Do you have any idea how that extra comma crept in? If it’s programmer error I’d really like to fix it.

    Thread Starter Jason Robinson

    (@jsrobinson)

    I installed from the WordPress repository on a different site and it happened again. It might not be in sync with the plugin’s github version.

    Same thing happend to me as well, One one site it worked perfectly alright that had php7.4, however on another server with php7.2 I faced this issue.

    By the way, really awesome plugin. Can we add a mechanism the option to auto list query with no index in monitor and a quick button add those indexes into tables if required.

    Regards,
    Aamir

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error on activation’ is closed to new replies.