This message comes to me almost weekly... What does it mean?

This message comes to me almost weekly... What does it mean?

LiteCart 2.2.9

[22-Jun-2021 09:55:07 Asia/Riyadh] Warning: mkdir(): File exists in ~/includes/library/lib_cache.inc.php (Line 259)
~/includes/boxes/box_site_menu.inc.php (Line 67) in set()
~/includes/templates/fai.catalog/layouts/default.inc.php (Line 36) in include()
~/includes/entities/ent_view.inc.php (Line 23) in include()
~/includes/entities/ent_view.inc.php (Line 28) in {closure}()
~/includes/app_footer.inc.php (Line 12) in stitch()
~/index.php (Line 42) in require_once()
Request: GET / HTTP/2.0
Host: xxxxx.com
Client: 66.249.93.198 (google-proxy-66-249-93-198.google.com)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.175 Safari/537.36 Chrome-Lighthouse

[22-Jun-2021 09:55:07 Asia/Riyadh] Warning: Could not create cache subfolder in ~/includes/library/lib_cache.inc.php (Line 260)
~/includes/boxes/box_site_menu.inc.php (Line 67) in set()
~/includes/templates/fai.catalog/layouts/default.inc.php (Line 36) in include()
~/includes/entities/ent_view.inc.php (Line 23) in include()
~/includes/entities/ent_view.inc.php (Line 28) in {closure}()
~/includes/app_footer.inc.php (Line 12) in stitch()
~/index.php (Line 42) in require_once()
Request: GET / HTTP/2.0
Host: xxxxx.com
Client: 66.249.93.198 (google-proxy-66-249-93-198.google.com)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.175 Safari/537.36 Chrome-Lighthouse

tim

Spontaneously it would seem that the file system is glitching. LiteCart attempts to create cache subfolders if they are missing. But when creating it your file system indicates that it already has been created. I would ask the web host what could be the cause of it.

Thank you, dear Tim, for your response. I will contact the host regarding this.

tim

This is the code, and my comments to what is happening


            if (!mkdir(dirname($cache_file))) { // <--- Directory is created but fails with error directory is already created
              trigger_error('Could not create cache subfolder', E_USER_WARNING);
              return false;
            }
          }```

Do I use this code or is it just for clarification? If it is used, where is it placed?

Thank you for your interest and following.

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub