Geoff Posted November 5, 2022 Posted November 5, 2022 Hi All We have got this message from our hosting provider Quote Hello Geoff, we're getting swamped with log entries from lancashiregames.com as shown below: [04-Nov-2022 20:58:35] WARNING: [pool lancashiregames.com] child 1098099 said into stderr: "PHP message: PHP Warning: file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/opt/plesk/php/7.4/share/pear/smarty_autoloader.class.php) is not within the allowed path(s): (/var/www/vhosts/lancashiregames.com/:/tmp/) in /var/www/vhosts/lancashiregames.com/public_html/lg/classes/autoloader.class.php on line 92" These generated 100GB worth of disk space over the last 12 hours. Please resolve the issue ASAP or we'll be forced to suspend the hosting service. I don't know why this happening I can't find what is causing this. But the cache directory is being flooded with files such as "40509.sql.ff8fc439975457488e6402b9bfbe5231.cache" We have an additional problem that the Token update system stopped working we have PayPal Commerce 1.7.1 but it will not update it any further it gives a Token not recognised or expired error on 1.7.2 or higher when the token has only just been generated. The last worry is that "News & Announcements Latest Topics" from the right hand side of the Dashboard is not being displayed. The heading nor list of links. Hoping someone can help Best Regards Geoff Pearson
bsmither Posted November 5, 2022 Posted November 5, 2022 The "open_basedir restriction" might be coming from a directive in the PHP.INI file that specifies what other directories to be included in PHP's ability to look for a file with a given name but not sure in what folder to look for it. Generally, this how autoloaders work - scan all available folders looking for object class files. Then, coupled with directives found elsewhere concerning "open_basedir" security enforcement (not necessarily setup by PHP), there will be conflicts. Suggest your hosting provider assist you with PHP.INI file's overly permissive "include_paths" directive (or similar named directive) vs. any open_basedir directive restriction. The cache directory is used to fetch results from prior database queries -- queries where the results are not likely to have changed in a few days. Depending on the amount of products, categories, documents, customers, etc, the total quantity of these files could be from a couple hundred to substantially more. CubeCart (and many, many other applications) use cached database results instead of continually hitting the actual database for content that would be considered static. This is good practice. The token error issue has had other forum posts regarding that: https://forums.cubecart.com/topic/50749-error-token-was-not-recognised-or-has-expired/ The News block not appearing could be the result of using a much older version of CubeCart than what is current, or a setting from an older version has been carried over to the version you are currently using. In admin, Store Settings, Layout tab, Layout Settings section, the current value for "Default RSS URL for Admin Dashboard" is: https://forums.cubecart.com/forum/1-news-announcements.xml There may be a firewall issue??? Please let us know the exact version of CubeCart you are using.
Geoff Posted November 5, 2022 Author Posted November 5, 2022 Thank you for your reply bsmither At some point it has been every version of Cubecart since 2013 With a few rebuilds and data transfers in the pasted, this is the current site info Inventory Data Customers - 2,095 Orders - 4,418 Products - 4,618 Categories - 502 Technical Details CubeCart Version - 6.4.7 PHP Version (7.3 Recommended) - 7.4.32 MySQL Version - 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1 Image folder size - 0.92GB Max. Upload filesize - 32M Browser user-agent - Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0 Server Software - Apache Best regards Geoff
bsmither Posted November 5, 2022 Posted November 5, 2022 With that many products, categories, and orders, I would expect a few tens of thousands of cache files. Again, having and using a cache is a good thing - thousands of files versus thousands of database queries. Please check on the other points discussed.
Geoff Posted November 5, 2022 Author Posted November 5, 2022 20 minutes ago, bsmither said: With that many products, categories, and orders, I would expect a few tens of thousands of cache files. Again, having and using a cache is a good thing - thousands of files versus thousands of database queries. Please check on the other points discussed. Yes I now realise what the cache is doing or a bit clearer. I can't get back to work on the site till Monday (UK time) to will get back to you then Thank very much for you quick replies Have a good weekend Best Regards Geoff
Geoff Posted November 7, 2022 Author Posted November 7, 2022 This is the PHP Performance and security settings for site This is the PHP Common settings for the site These are the PHP-FPM settings for the site On 11/5/2022 at 7:05 PM, bsmither said: The News block not appearing could be the result of using a much older version of CubeCart than what is current, or a setting from an older version has been carried over to the version you are currently using. In admin, Store Settings, Layout tab, Layout Settings section, the current value for "Default RSS URL for Admin Dashboard" is: https://forums.cubecart.com/forum/1-news-announcements.xml There may be a firewall issue??? Please let us know the exact version of CubeCart you are using. I changed the Layout Settings of the Default RSS URL for Admin Dashboard from "http://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/" to the above but its still not showing
Recommended Posts
Archived
This topic is now archived and is closed to further replies.