• Resolved Svenpeter

    (@svenpeter)


    Hi,
    We are using a WP Staging site to test updates on plugins before activating them on our live site. When updating All in One WP Security from version 5.2.1 til 5.2.4 it caused a series error, and we got the “series e-mail note”. It says that “an error of the type E_Complie_error” happened on row 7 in the following file: xxx/xxxx/xxxx/xxxxxxx/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/firewall/libs/wp-security-firewall-config.php. The cause of the error was “cannot declare class AIOWPS\Firewall\Config, because the name is already in use”.
    I wonder if this is due to the fact that we make the update on a WP Staging site (i.e. not the production site) – or if it is an actual fault that will occur also when updating on the live site? In this case, we would need to know what is causing this to happen in advance.
    Many thanks for guiding me from here on.
    Best regards, Peter

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @svenpeter

    If you have staging site copied from live site and the staging site files are referring to the live site file and some how it is loading twice the same class file which might be issue

    Make sure that wp-config.php. , htaccess, .user.ini file in the root of the wordpress installed directory has the correct aios-bootstrap.php path to include.

    Also make sure aios-bootstrap.php file has the correct $GLOBALS[‘aiowps_firewall_data’] ABS_PATH.

    Regards

    Thread Starter Svenpeter

    (@svenpeter)

    Hi,
    Thanks for fast reply and your help. I am aware of the wp-config, htacess and user.ini file, and have changes to them before, but this proposal became a little too advanced for me, I am not really sure what to check for.
    But, how I believe WP Staging works is that it makes an identical copy of the site on a subdomain name to our live site. Then, it is possible to update the plugins one by one on that “test-site”, to look for any issues. I can not say what refers to what when the plugins are updated, but I would expect that most (but perhaps not exactly every file) is replaced/updated.
    I think I will actually make a copy of the site again, and then try to update on the live site directly to see if there are some errors there as well (hope not), and then your suggestion would make sense (i.e. the All in one Security Plugin can not be tested with WP Staging), which in a way is a little sad, as it would be just excellent if we could test your plugin as well in they environment. I am pretty sure quite many users of the WP Staging would feel the same.
    Do you think it is a good idea testing to update on the live site? If so, then this is what I will do next I think.
    Many thanks in advance. Peter

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @svenpeter

    Ok, Let me cross-check in more detail and get back to you on this

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @svenpeter

    Sorry for the late reply, I have created an internal ticket for this and I have been still waiting for the reply, I have followed up for the update.

    Regards

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @svenpeter

    Sorry for later reply.

    We tried but can not replicate this issue.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get E_compile_error when updating on WP staging site’ is closed to new replies.