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):

  1. modify /admin/classes/config.php with the following information
    1. Line 19:     $AStatusPath     = 'stats/';               // example would be $AStatusPath     = 'alternate_folder_name/'; 
    2. Line 39:     $StatusPath     = '../stats/';              // example would be $StatusPath     = '../alternate_folder_name/';
  2. FTP into your site and create your directory in the web root for "alternate_folder_name"
  3. 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)
  4. 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)
  5. Goto Control Panel and click Clear Cache

This sounds complicated, but it took me under 5 minutes, and all errors were gone.