-
AuthorPosts
-
July 30, 2018 at 3:25 pm #991542
i found a thread concerning to this error – but the old thread is closed – so i like to know how to fix it.:
https://kriesi.at/support/topic/php-errors-in-server-log/No such file or directory in …/class-framework-widgets.php on line 3019
I’m not a nerd who looks into the error log files every day now, but at a customer’s site I probably had a database connection error and a total failure of the site. Thereupon I looked at the log files, and had to see not only there this error. However, this had no effect on other domains.
What could be changed or will Enfold 4.4.2 soon be in sight?i got this on my Enfold 4.4.1 on that customer installation:
$cache_dirs = scandir( $this->upload_folders['instagram_dir'] ); if( ! is_array( $cache_dirs ) ) { /** * Something went wrong reading directory - folder does not exist, access denied, ..... * There is nothing we can do. */ return; }
which seems to be the original setting.
Guenter mentioned that he added :
if( ! is_dir( $this->upload_folders['instagram_dir'] ) ) { return; }
should this behind that phrase above?
thanksJuly 31, 2018 at 1:25 pm #991921Hey Guenter,
Thank you for using the theme. :)
Yeah, I think that modification should be added right after the condition, around line 3022, before the comment.
if( ! is_array( $cache_dirs ) ) {
I’ll tag @guenter so that he could check the thread personally.
Best regards,
IsmaelJuly 31, 2018 at 2:33 pm #991941thanks for the response. i don’t believe that the crash of the site is not in correlation to that – but the mysql errorlog shows that error on the time the site goes down.
However – i have off all my sites a duplicator (bzw multisites an updraft ) backup. So no worry.PS i rcognized on that install that in the page widget area there are placed the instagram widget on startup ( maybe that was a demo install with those entries. I didn’t notice that because I almost never activate the sidebar for pages.
July 31, 2018 at 4:04 pm #991967Hi,
The code
if( ! is_dir( $this->upload_folders['instagram_dir'] ) ) { return; }
must be placed before
$cache_dirs = scandir( $this->upload_folders['instagram_dir'] );
because scandir throws a warning when trying to read a non existing directory.
Best regards,
GünterAugust 1, 2018 at 12:06 am #992131Aha thanks –
Danke Günter – meinst du es bestand ein Zusammenhang mit dem Datenbankverbindungsfehler – und dem somit Total Ausfall der Seite?
Wie gesagt es war leicht zu beheben in dem ich beim Hoster die Rechte neu gesetzt habe.August 1, 2018 at 11:29 am #992338Hi,
Datenbank und Directory (= Filesystem) sind getrennte Sachen.
Datenbankverbindungsfehler kann auftreten, wenn der SQL Server down ist (warum auch immer) oder überlastet, dass er keine Anfragen mehr beantworten kann (dass username, passwort,.. in wp-config falsch sind – kann man ausschliessen, außer sie wurden am SQL Server kurzfristig geändert resp. deren Rechte).
Ohne DB geht natürlich WP nicht und somit die ganze Seite.
LG
Günter -
AuthorPosts
- You must be logged in to reply to this topic.