GetSimple Support Forum
PROBLEM "Can't open file" error when saving an edited theme template - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: PROBLEM "Can't open file" error when saving an edited theme template (/showthread.php?tid=6541)



"Can't open file" error when saving an edited theme template - godhek - 2014-07-04

Hi!

I'm very new to GetSimple CMS. I just successfully installed it and loaded my website. The only problem with my installation was the .htaccess file which caused 'internal server error' when I renamed it from temp.htaccess. However, when I don't rename it, my website is working just fine, so I just leave it as temp.htaccess for now.

Then, I face this "can't open file" error when I try to edit the theme template and save it. I've googled around for answer but I couldn't find any. Does anyone experience this problem? Is this error related to the .htaccess file? Please kindly help me on how to edit the theme template using the theme editor in the admin panel.

I would greatly appreciate your assistance Smile

Regards,


RE: "Can't open file" error when saving an edited theme template - shawn_a - 2014-07-04

Htaccess probably failed to write the replace.
Find the line that says replace and hangs the root to your website root
Usually /

Check health check also.
Can you post the exact error for the theme edit?


RE: "Can't open file" error when saving an edited theme template - godhek - 2014-07-04

Thanks for your prompt reply.

Yes, I've tried to change the **REPLACE** comment to / in my .htaccess file as you suggested. However, if I don't comment out the whole rewriteengine module, it will cause internal server error. Another parts that I've commented out are options-indexes and option follow symlinks. With this configuration, I've got the .htaccess file working without causing internal server error.

The path to my theme is http://www.mysite.com/theme/theme-name/template.php as stated in theme editor of the admin panel.

During the installation, I had to change the data and backup directory to 777 instead of 755. Currently, all the folders are set to 755 and the files to 644 except those two folders mentioned before.

I ran the website health check as you suggested found out there are two possible problems, the cURL module states it is not installed and the theme .htaccess states 'no file - OK'. Could this be causing the problem? I've checked that there is no .htaccess file in the theme folder.

Once again, I'd greatly appreciate your assistance Smile

Regards


RE: "Can't open file" error when saving an edited theme template - shawn_a - 2014-07-04

You can probably try 775 also.

Are you using the latest version?
Does your health check say mod rewrite is available?


RE: "Can't open file" error when saving an edited theme template - godhek - 2014-07-04

Yes, I'm using the latest GetSimple 3.3.2

And yes, the apache mod rewrite is 'installed - ok'


RE: "Can't open file" error when saving an edited theme template - godhek - 2014-08-23

Hi!

I just want to give you an update that I've managed to solve this "can't open file" error when editing a theme. I just changed the permission for all the template files to 666.

Now I can directly edit the template files directly from CMS without causing any error.