• Resolved pschlenker

    (@pschlenker)


    The following PHP warning is filling up my PHP error log:

    PHP Warning: mkdir(): No such file or directory in /home/cpaneluser/public_html/wp-content/plugins/photo-gallery/framework/BWGOptions.php on line 353

    I temporarily added the following code to BWGOptions.php at line 351:

    var_dump($this->upload_dir);

    Here is the output from the above statement:

    string(59) "/home/cpaneluser/public_html/wp-content/uploads/photo-gallery"

    This path is correct, and the directory does exist. For some reason, this line of code in the plugin thinks it does not exist:

    if ( !is_dir($this->upload_dir) ) {

    I checked the file permissions of the directory in question, and all the directories above it, and the permissions are correct. What am I missing?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am getting the same error. I tried reinstalling the plugin files but no change. I just restored my site from a backup so not sure if related. I hadn’t checked the site for several days so not sure if it was there before. Was this resolved? Any Solutions?

    Thread Starter pschlenker

    (@pschlenker)

    As of 5/3/2020, this problem has not been resolved. The errors usually occur in groups of 2 to 3. They occur every 4 to 8 minutes. If I didn’t implement log rotation, my log file would be huge. The functionality of the plugin doesn’t seem to be affected by this issue, which is strange.

    Dear @pschlenker,

    The plausible explanation is that it cannot check whether the "/home/cpaneluser/public_html/wp-content/uploads/photo-gallery" exists or not, because it does not have enough rights to do that (permission problems).
    Please check the execute (list) permission of "/home/cpaneluser/public_html/wp-content/uploads/photo-gallery" directory for the user which runs this PHP script (probably it’s www-data)

    Sincerely,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: No such file or directory’ is closed to new replies.