Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    May 2006
    Location
    Australia
    Posts
    94
    Plugin Contributions
    0

    edititing define pages problems from admin

    I have just set up zen cart again using the default template (renamed) and the define pages editor gives me this error when i go to save changes

    Warning: fopen(E:/Inetpub/wwwroot/my_site/cart/includes/languages/english/html_includes/define_main_page.php) [function.fopen]: failed to open stream: Permission denied in E:\Inetpub\wwwroot\my_site\cart\admin\define_pages_editor.php on line 92

    Warning: fwrite(): supplied argument is not a valid stream resource in E:\Inetpub\wwwroot\my_site\cart\admin\define_pages_editor.php on line 94

    Warning: fclose(): supplied argument is not a valid stream resource in E:\Inetpub\wwwroot\my_site\cart\admin\define_pages_editor.php on line 95

    Warning: Cannot modify header information - headers already sent by (output started at E:\Inetpub\wwwroot\my_site\cart\admin\define_pages_editor.php:92) in E:\Inetpub\wwwroot\my_site\cart\admin\includes\functions\general.php on line 34

    can anybody please offer advise, thanks, Rod

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: edititing define pages problems from admin

    Did you rename the template_default directory or make a copy of it including all the files it conatins? (Neither would be a good idea). And have you told the Admin system to use your copied/renamed template?
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    May 2006
    Location
    Australia
    Posts
    94
    Plugin Contributions
    0

    Default Re: edititing define pages problems from admin

    Thanks for Responding Kuroi, yes i did copy the template_default, and going back over the faqs i see that i have to copy the template_default folder and put it inside new one, thanks, and back to the start i go, Rod

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: edititing define pages problems from admin

    Quote Originally Posted by rocketrod
    Thanks for Responding Kuroi, yes i did copy the template_default, and going back over the faqs i see that i have to copy the template_default folder and put it inside new one, thanks, and back to the start i go, Rod
    No. You don't copy the template_default folder.

    Instead create a new folder in the includes/templates directory called for example "custom". Then copy template_info.php into it from template_default and edit the new file to give your template a name (e.g. "Custom").

    Then go to Admin and from the "tools" menu select "template selection" choose your new template.

    And that's it. You are now using template_default in full default mode. From here copy only file that you want to chnage into your custom template respecting the file structure for template_default. For example you will certainly want to create an includes/templates/custom/css directory and put a copy of the stylesheet.css in there ready for editing, but most of the other files in template_default will never need to be touched. Some of the other instructions in this forum, the FAQ and the Wiki suggest that you should copy more files than this, but that's an historical throwback to a time when the authors were assuming that you would need to change more code than is now necessary.

    If you would like to see an example of a lightweight template in action, take a look at the future Zen template (there's a link in my sig below to its location in the download section. It shows how much can be achieved with just a stylesheet and a handful of images.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    May 2006
    Location
    Australia
    Posts
    94
    Plugin Contributions
    0

    Re: edititing define pages problems from admin

    Thanks Kuroi, i have taken that on board, and installed the futurezen,( looks great)
    but still cant use the define pages editor, it come up with the same error messages, Rod

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: edititing define pages problems from admin

    I'd take a close look at this file
    E:/Inetpub/wwwroot/my_site/cart/includes/languages/english/html_includes/define_main_page.php
    It must be there otherwise the define pages editor simply wouldn't have offered it as an option. But if it can't be opened, I wonder if it is corrupt or has somehow acquired read-only status so can't be opened for writing. If necessary delete it completely and replace it with a completely empty file (created via Notepad not Word) with the same name and try again.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    May 2006
    Location
    Australia
    Posts
    94
    Plugin Contributions
    0

    Default Re: edititing define pages problems from admin

    Thanks Kuroi, yes i can edit it with notepad, maybe something corrupt :-( somewhere, will check out other define pages, thanks, Rod

  8. #8
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: edititing define pages problems from admin

    Has anyone experienced the define pages editor not saving changes to the ZenCart? Any suggestions on how to fix this problem would be appreciated. Thanks.

    Jonathan

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,683
    Plugin Contributions
    6

    Default Re: edititing define pages problems from admin

    Make sure that the /includes/languages/english/html_includes directory, subdirectory and all files are set to 777 or you cannot edit them in the Admin ...

    NOTE: if you upload changes ... the file will no longer be 777

    NOTE: if you make changes in the Admin ... the *only* copy is on your server, be sure to always backup this directory ...

    NOTE: you should *always* use the templates and overrides for the define pages or you will be doomed on an upgrade ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: edititing define pages problems from admin

    Quote Originally Posted by Ajeh
    Make sure that the /includes/languages/english/html_includes directory, subdirectory and all files are set to 777 or you cannot edit them in the Admin ...

    NOTE: if you upload changes ... the file will no longer be 777

    NOTE: if you make changes in the Admin ... the *only* copy is on your server, be sure to always backup this directory ...

    NOTE: you should *always* use the templates and overrides for the define pages or you will be doomed on an upgrade ...
    Hi Linda

    This is all good advice, especially the bit about using overrides for the define pages. I've been a bit puzzled for a while as to why Zen Cart has this rather dangerous exception to the overrides system in the Define Pages Editor. Are there plans to change it? Or is deliberate to keep things simple for new users switching between templates?
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •