So, I’m getting a really slow load time on a site. I’ve check GTMetrix and it’s getting an A but is still taking 20+ seconds to load a page. I believe it’s because the server that it’s on has to be using PHP 5.6 for another site that is shared there.
[17-Oct-2018 21:45:30 UTC] PHP Warning: scandir(): (errno 2): No such file or directory in /home2/amazioa7/public_html/greatlakespromotions.com/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
I’m getting a lot of errors like that. Is there anything I can do to modify some files to work well with the older version of PHP? Any other thoughts about load time?
https://www.greatlakespromotions.com/ is the site by the way.
Hi,
Please update to php 7.1+ so you can be able to use all the features of our theme on the maximum! :)
Best regards,
Basilis
Hey Basilis,
Oh man, I’d really like to but in the backend is an outdated program that breaks when updated to 7.0 and so we have to keep it at this older version of PHP – I guess the other question is is there a version of Enfold that does work best with PHP 5.6? It’s been a theme for quite a long time and I assume there was a version back there that was optimized for the older version of PHP.
Hi CurlyHost,
This version works with the php5.6 you can just disable warnings being written to the log and it should be fine.
Best regards,
Victoria
What do I have to do to make it so warnings don’t get written in the log?
Hi CurlyHost,
In your wp config
https://gist.githubusercontent.com/jennimckinnon/01c0c4b7c9a57580e5266aa679c79bd0/raw/3a94ab9a8ccada08bd59341fa1b18c5973cf7d91/wp-config.php
and
error_reporting(E_ERROR | E_PARSE);
http://php.net/manual/en/function.error-reporting.php
If you need further assistance please let us know.
Best regards,
Victoria