Forums / Basic Configuration / ZEN returns "File not found" define pages editor.

ZEN returns "File not found" define pages editor.

Locked

Views: 2,815

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Jan 2008, 11:26 PM
#1
stuffdone avatar

stuffdone

Zen Follower

Join Date:
Jul 2007
Posts:
156
Plugin Contributions:
0

ZEN returns "File not found" define pages editor.

I am frustrated. ( ok..another story ) but for some reason anytime I try to edit a page using the "define pages editor" it returns a file not found error.

I can open the directory in FTP and clearly see the file is there. CHMOD 777 etc. But for some reason ZEN says there is no such file??

Any ideas?

:(

28 years web design and counting.
https://stuffdone.com

3 Jan 2008, 12:53 AM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: ZEN returns "File not found" define pages editor.

Are you using a Custom Template? If yes, did you copy over the 'html_includes/classic/" dir. & files to your 'html_includes/custom' dir.?

The learning is in the doing.

Potent Products

3 Jan 2008, 1:03 AM
#3
stuffdone avatar

stuffdone

Zen Follower

Join Date:
Jul 2007
Posts:
156
Plugin Contributions:
0

Re: ZEN returns "File not found" define pages editor.

Website Rob:

Are you using a Custom Template? If yes, did you copy over the 'html_includes/classic/" dir. & files to your 'html_includes/custom' dir.?

No just edited the default template.

:cool:

28 years web design and counting.
https://stuffdone.com

3 Jan 2008, 8:58 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: ZEN returns "File not found" define pages editor.

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?

The learning is in the doing.

Potent Products

3 Jan 2008, 2:41 PM
#5
stuffdone avatar

stuffdone

Zen Follower

Join Date:
Jul 2007
Posts:
156
Plugin Contributions:
0

Re: ZEN returns "File not found" define pages editor.

Website Rob:

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.

:censored:

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.:bigups:

Note: I am not a PHP programmer so kinda stuck other than the little things in the scripts.

28 years web design and counting.
https://stuffdone.com

3 Jan 2008, 8:28 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: ZEN returns "File not found" define pages editor.

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.

The learning is in the doing.

Potent Products