• Resolved jdgd

    (@jdgd)


    Is there a way to enter the settings directly into the database?

    I can’t do the settings. When I click the Save button, I’m directed to a “page not found” error that looks like my home page minus CSS. Same thing when I tried to install the plugin via WordPress. I had to use FTP.

    Here’s a screenshot https://www.dropbox.com/s/napv42kl0t0gd0m/woocommerce%20GA%20error.png?dl=0.

    I used the Health Check & Troubleshooting plugin and found that the problem might be with WooCommerce, but I can’t do anything with the Google Analytics plugin with WooCommerce disabled. I thought it might help to reinstall WooCommerce, but I’m afraid to in case I encounter the same problem and break the store.

    My local version of the site is fine, by the way.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support B C. a11n

    (@battouly)

    Hi @jdgd,

    It may be possible to enter the settings directly into the database, but that is outside the scope of support for this channel.

    For the problem you are experiencing, it might have something to do with the other active plugins, or a caching plugin issue (We’ve seen caching plugins do weird stuff sometimes).

    Is it okay if you turn other plugins off temporarily to troubleshoot what’s going on? When you’re done you’ll activate them.

    Ensure debug mode is enabled too.
    If the problem persists, head to WooCommerce > Status > Logs and in a dropdown, find a Google Analytics error log timestamped around the time you did a test setting. Select, that, click view, copy the log and send it to us.

    Thanks!

    Thread Starter jdgd

    (@jdgd)

    I went ahead and entered the settings into the database. It was the only way I could get this to work. Only I’m not sure it’s working.

    As I mentioned — and I did try it again just now — I think WooCommerce is the problem. And I can’t disable it because this plugin requires it to function.

    I used the plugin Health Check & Troubleshooting to disable every plugin except WooCommerce and WooCommerce Google Analytics Integration, and the problem persists: A 404 error when I try to save the settings.

    Here’s the log file (paths and line numbers obfuscated):

    [21-Jun-2022 21:36:21 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 524288 bytes) in XX/wp-content/plugins/woocommerce/i18n/states.php on line X
    [21-Jun-2022 21:36:25 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in XX/wp-includes/plugin.php on line X
    [21-Jun-2022 21:36:25 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/class-wc-log-levels.php on line X
    [21-Jun-2022 21:36:31 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/shipping/flat-rate/includes/settings-flat-rate.php on line X
    [21-Jun-2022 21:36:31 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/class-wc-log-levels.php on line X
    [21-Jun-2022 21:37:15 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 53248 bytes) in XX/wp-content/plugins/woocommerce/i18n/states.php on line X
    [21-Jun-2022 21:37:15 UTC] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/class-wc-log-levels.php on line X

    Since I was able to enter the settings directly into the database, I’ll probably be OK without fixing this.

    But how can I tell if the plugin is working?

    And this takes me back to a more fundamental question that arose when I discovered the WooCommerce Google Tag Manager integration plugin: Why is this plugin needed? Does Google Analytics not already capture the data because of the embed code? Should I use the GTM plugin instead — or in addition? I took the basic GTM and GA4 LinkedIn courses, but it’s still opaque to me and I don’t think they talk about WooCommerce. Is there a resource that would spell all of this out?

    Thanks!

    Hi @jdgd,

    Those PHP Fatal error messages are indicating that your site’s server is running out of memory when trying to complete several operations. This indicates the issue is a problem with available resources and/or server configuration, not an issue with your WooCommerce installation.

    I recommend you reach out to your hosting provider to request that the available memory be increased to at least 256 MB to resolve those errors, as they could affect every aspect of your site, including editing settings and uploading new plugins.

    You can find the WooCommerce Server Recommendations here: https://woocommerce.com/document/server-requirements/

    You can find the documentation for the Google Analytics Integration, including information on how to test the tracking to confirm it’s gathering the correct data, here: https://woocommerce.com/document/google-analytics-integration/

    I hope this is helpful! If you have any further questions after addressing those errors please let us know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Page not found” error’ is closed to new replies.