• Resolved aliceralph

    (@aliceralph)


    Hi there

    The plugin works great on my local (PHP 7.1.7) but I get an error when I try to activate it on my live site (7.1)

    Plugin could not be activated because it triggered a fatal error.
    
    Warning: require_once(/www/wp-content/plugins/give/includes/admin/tools/logs/logs.php): failed to open stream: No such file or directory in /www/wp-content/plugins/give/give.php on line 542 Fatal error: require_once(): Failed opening required '/www/wp-content/plugins/give/includes/admin/tools/logs/logs.php' (include_path='.:/usr/share/php:/www/wp-content/pear') in /www/wp-content/plugins/give/give.php on line 542

    Is there a fix for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    That error does not seem to be related to PHP 7.1 at all, but most likely an issue with the migration up to the live site perhaps. We test on 7.1 regularly. Can you double-check via (S)FTP that the file the error is referencing is actually there correctly? Look for:
    /wp-content/plugins/give/includes/admin/tools/logs/logs.php

    Also, it would be best if your host could update to 7.1.7. Those minor point releases usually are security issues.

    Let me know what you find. Thanks!

    Thread Starter aliceralph

    (@aliceralph)

    Hi Matt, thank you so much for your reply.

    Ah, I can see now that the file doesn’t actually exist (the file ‘logs’ is non existent). Could I manually create this file… would that help?? (Apologies if this is a dumb question!)

    Unfortunately I don’t think I will be able to get the host to change the PHP version as it is hosted on https://getflywheel.com which is essentially shared hosting. I’ve sent them a support ticket anyway.

    Thanks

    Alice

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi Alice, if you pushed the site live using Flywheel, then you should definitely ask them why the file exists in staging but not in production. I think that’s in their department. Keep us posted on what they say.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when activating on PHP 7.1’ is closed to new replies.