• Resolved Ryan Tvenge

    (@rtvenge)


    I see in the most recent update you added logging for debugging:

    Added: Logging functionality to help aid with debugging and the plugin not working as needed or expected.

    I am currently on Pantheon managed WordPress host which has a read-only plugin/theme policy on it’s file system (excluding uploads) and am getting the following fatal php error when in read-only environments:

    Warning: require_once(/code/wp-content/plugins/constant-contact-forms/vendor/psr/log/vendor/autoload.php): failed to open stream: No such file or directory in /code/wp-content/plugins/constant-contact-forms/constant-contact-forms.php on line 550
    Fatal error: require_once(): Failed opening required '/code/wp-content/plugins/constant-contact-forms/vendor/psr/log/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /code/wp-content/plugins/constant-contact-forms/constant-contact-forms.php on line 550

    My initial thought is that the logging is trying to write to the plugin directory and failing when trying to load the file. But the error doesn’t really seem to suggest that as it can’t get to autoload.php.

    Any help would be appreciated.

    Thanks!

    Ryan

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    If you have your files version controlled, we recently had it reported that a stray .gitignore file was present and prevented some of this stuff from working. Removing the .gitignore and adding the correct folder from a download, into your version control should help resolve this.

    You can see more information about this reported error at https://www.ads-software.com/support/topic/missing-vender-autoload-from-psr-vender-library/

    Thread Starter Ryan Tvenge

    (@rtvenge)

    Sorry I missed that ticket. I clearly wasn’t searching for the correct issue before I opened this topic. ??

    Thank you very much for the response! I removed the .gitignore file and that fixed the issue and I was able to update successfully.

    Plugin Author Constant Contact

    (@constantcontact)

    No worries on missing the support thread, just as long as everything’s back on the right track, as it sounds like they are. ??

    Let us know if you need any other help. Thanks.

    I have run into this issue as well. I tried to delete any .gitignore files in the /contstant-contact-forms directory and I am still having the problem. I had just updated to the latest php version on Pantheon.

    Thanks in advance.

    Plugin Author Constant Contact

    (@constantcontact)

    Was this before or after trying to commit/deploy things? If it was after, then you’d still be missing the necessary files in the remote deployment location and would need to re-commit them from a fresh download and re-deploy.

    This was after I committed and updated so I will try a fresh install of the plugin and reassign classes and ID’s

    RESOLVED

    I deleted the plugin files via SFTP then simply reinstalled the plugin and everything was back to normal. I hope I didn’t waste too much of your time but I do appreciate the speedy response.

    Plugin Author Constant Contact

    (@constantcontact)

    Was curious what you were referring to regarding reassigning classes and IDs, but that’s not super important.

    The biggest thing, as you found, was getting the necessary files into the intended location, those that were affected by the gitignore.

    Glad to see you got it taken care of. No time at all wasted.

    I thought I might need to reassign things if the plugin was reinstalled, that I might have a new id number for the shortcode. Anyway, the problem has come back when I push to test environment and in this environment, pantheon prevents me from installing new plugins. So, I’m curious about which files need to be where exactly. Thanks again for your responses.

    Plugin Author Constant Contact

    (@constantcontact)

    @speerdo79

    At this point, it sounds like you need to download a fresh copy of the plugin, re-delete the .gitignore files that were found previously, and then copy/paste that “cleaned up” version of constant-contact-forms folder back in to where you’re git repo is, specifically over the previous copy. Running a git status check should show any files that are missing from being committed, and you can get those added/deployed at that point.

    I did just that and it worked. Thank you for your help!

    Plugin Author Constant Contact

    (@constantcontact)

    Awesome to hear.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Critical PHP Error: Log’ is closed to new replies.