28 years web design and counting.
https://stuffdone.com
If Zen Cart can see the file but not able to Edit it, you will see a msg. saying so at the top of the Admin page. In that you case you change permission of the 'html_includes/classic' dir. to 777.
If the file is not there then your Browser will return a 404 - Page not Found error.
Exactly which error are you getting?
One would think ! But not the case. I don't get a 404 error. On the actual edit page where it normally displays the path to the file you are editing it says "file not found: .../path "
the path is correct. The file IS there. CHMOD is 777.
Here is the strange part. The server error logs say it is looking in the path in /admin/ folder but this is not what it says on the screen.
Any idea where in the scripts it actually calls for the file to be edited..the path information it is trying to use...or how it might even think to look in /admin for those files?
Curiouser and curiouser. This is not production so is not hurting anyone. I can reinstall if necessary but I really hate not knowing what went wrong.
I have installed a dozen zen carts with out ever having this happen.
--
Now on another cart, I have the problem where the page to be edited shows up fine. I can edit it on screen but it will not save it. Permissions are 777 so it is not a permission thing. There is no error message either. I have been manually editing the file through FTP.
--
Again...this is not critical to an actual functional cart but now a mystery to solve so if no one has an idea it is not really critical other than to keep my sanity intact.
Thanks.
Note: I am not a PHP programmer so kinda stuck other than the little things in the scripts.
Last edited by stuffdone; 3 Jan 2008 at 03:43 PM. Reason: Little note
28 years web design and counting.
https://stuffdone.com
All paths are setup from the 2 config files.
admin/includes/configure.php
includes/configure.php
You should verify that paths are stated correctly.
In order to Edit a "define" file, not only must the file have 777 permission but so must the directory the the file is in. Sometimes you even need to go one directory higher with 777 permissions.
define_main_page.php <- this must have 777 permissions
classic directory <- this must have 777 permissions
html_includes directory <- this may need 777 permissions
If push comes to shove, make the directories 755 and the files 644 then edit the files on your Computer and FTP them. That will always work.