GoDaddy Customers
GoDaddy Customers
If you are getting this error, the problem is godaddy's directory structure. Because Godaddy keeps its own stats in the "stats" folder, it does not allow for the cms to place information there. (Yes a permissions issue)
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/code/class.theme.php on line 66
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/code/class.theme.php on line 67
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/code/class.theme.php on line 93
Here is how you fix the problem if you are a godaddy customer (replace "alternate_folder_name" with a folder of your choice):
- modify /admin/classes/config.php with the following information
- Line 19: $AStatusPath = 'stats/'; // example would be $AStatusPath = 'alternate_folder_name/';
- Line 39: $StatusPath = '../stats/'; // example would be $StatusPath = '../alternate_folder_name/';
- FTP into your site and create your directory in the web root for "alternate_folder_name"
- Login to your CMS and Goto the Control Panel => CMS Health Status and click on all the rain clouds you see (this will fix the missing files)
- Then go to Control Panel => CMS Health Status and click on ALL of the primary file suns (this will rebuild all of the primary files to point to the new location)
- Goto Control Panel and click Clear Cache
This sounds complicated, but it took me under 5 minutes, and all errors were gone.