Common Errors
Common Errors and how to fix:
The most common problems are fwrite() and fclose() errors. This IS a permissions issue. If you are getting these errors please check your permissions.
If you are a GoDaddy Customer, and you keep getting these errors the issue is that GoDaddy is using a folder of the same name as the cms the folder "/stats" and it will not allow you to change the permissions on this folder. Click here to view the fix for godaddy customers..
Permissions
If you straight copy the uncompressed cms into your web directory and try to view your website you will sometimes get the following errors: (or something very simiar):
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
Etc...
If you are getting errors like this you do not have your permissions set properly. You REALLY need to refer to the install doc.
I will post the fix to these errors but you really should consult the install doc, for complete install instructions. (You have been warned.)
Here is the fix: (you may have to login as root to perform this action, depends on the platform you are running on)
- chown your web directory to the name of the user that runs the web server
- chgrp your web directory to the name of the group that runs the web server
- chmod -Rf 755 the path of your MµCMS install
If you do not have commandline (ssh, telnet) login to your server this can be performed by FTP, check with your ftp software for how to do this.