• Resolved 4csmedia

    (@4csmedia)


    Hello Albert,
    Since last week Wednesday Google Analytics stopped working, I’m using Google Tag Manager and Tag Manager was loading, but the analytics tag didn’t.
    Also I got a few 500 errors, https://imgur.com/5vB5WQH

    I reverted back to PhastPress version 1.21 and now it seems t be working all right again.

    So it seems something has changed on the last version that doesn’t work very well for this site.

    I did check with the hosting company, but mod_security extensie is not installed.

    Kindest regards,
    Robert

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi Robert,

    Thanks for trying out PhastPress! Sorry for my late reply, it seems I didn’t get the notification I usually get for new support questions.

    If you’re getting 500 errors, there should be errors in your server error log, or in wp-content/debug.log, after enabling WP_DEBUG and WP_DEBUG_LOG.

    Could you update to the latest version again, check the logs after reloading the page a few times, and send me the errors that occur?

    Thread Starter 4csmedia

    (@4csmedia)

    Hello Albert,
    Thank you for your reply and I managed to get it to work while trying to get debug files.

    When I enabled debug, I saw fatal errors pop-up in my server log files:
    Backend fatal error: PHP Fatal error: require_once(): Failed opening required ‘ABSPATHwp-settings.php’

    I managed to solve this by adding the following code to wp-config file:

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
            define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    Which seems to do the trick, apparently you use the ABSPATH variable too?

    Hello Albert,

    The solution sugested by @4csmedia did not workrd for me.

    The only solution was to disable: Minify scripts and improve caching

    Is there other solution, please?

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @imatei1985,

    Are you using the latest version, PhastPress 1.25?

    Could you share the URL of your site with me, so that I can have a look? Please enable the “Minify scripts and improve caching” temporarily, so that I can see what the problem is.

    If you’d rather not publish the URL on the internet, please create a new topic and enter the URL into the “the page I need help with field”, so only logged-in users can see it.

    –Albert

    I am using 1.25 version.
    My url is: https://10pariuri.ro/
    I enabled Minify scripts and improve caching and I deleted cache.

    Plugin Author Albert Peschar

    (@kiboit)

    Hi,

    @4csmedia: The ABSPATH variable is usually defined in wp-config.php, but I didn’t know it isn’t always there. In PhastPress 1.27 this is now no longer required, as PhastPress uses wp-load.php instead, which always defines ABSPATH. Thank you for your bug report and detailed information about the fix.

    @imatei1985:

    There is a problem on your server causing output from PHP to be compressed twice. For example, this causes problems on wp-emoji-release.min.js. I don’t know whether this is due to another plugin or your web server configuration. Do you have a .htaccess file? And if so, could you share it with me via gist.github.com pastebin?

    Additionally, I see you are using some other plugin to minify scripts. It moves them to /min/abcd.js and breaks PhastPress. Could you please disable any other optimization plugins? There is a conflict with PhastPress, and generally, when you use PhastPress, no other optimization plugins are needed.

    –Albert

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Google Analytics not working’ is closed to new replies.