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?
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?
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.
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