Results 1 to 10 of 26

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    92
    Plugin Contributions
    0

    Default Re: database writing problem...

    Quote Originally Posted by mc12345678 View Post
    Define pages are not written to the database, they are written to files in the includes/languages/YOUR_LANGUAGE/html_includes/YOUR_TEMPLATE/define_xxx.php files if the file exists in YOUR_TEMPLATE otherwise it writes to the html_includes directory. This writing is performed by the define_pages_editor.php file located in your admin directory and references file locations identified in your admin/includes/configure.php file...
    All good and well. THE save is NOT writing to the file, it is bouncing me out to the main page of my site. If I go back, I am back into the admin I was just kicked out of.

    Quote Originally Posted by mc12345678 View Post
    If the installation was done in accordance with iinstruction such as http://www.zen-cart.com/entry.php?3-...d-of-upgrading then the includes/configure.php and admin/includes/configure.php files should both be pointing to the correct base folder structure and editing the file(s) following the above structure.
    I would love to have been able to do that, but I was unfortunately not in receipt of a build file showing WHAT had been added by the previous admin and had to fly by the seat of my pants to do that. So, NO, that procedure was not followed.

    I am, at this point simply trying to save my data. Be that as it may, the includes/configure and the admin/includes/configure both point where they should as is testified by the fact that ALL of the other define pages, save just fine. As I said I am simply rescuing db files from the old version. I am not working with the same set up at all. The saving of the database has been done line by line. I'd have loved to have done this the "easy" way you describe.

    Quote Originally Posted by mc12345678 View Post
    Further, when the define_main_page.php is selected for edit, the line above the text box area should provide the complete folder/file path for the file being edited... If that file path matches your expected location, then perhaps the file has access permissions set on it that prevent editing.
    The define_main_page.php is set to 644, just like all the other define pages. So THAT is not the problem.

    Quote Originally Posted by mc12345678 View Post
    As to the discussion of logs, the error logs in a default install of ZC 1.5.4 are directed to the logs directory off of the root of the store and are also identified in the above two configure.php files. Perhaps posting those to files (obscuring admin directory and db credentials) will shed some light on the issue if the above doesn't help.
    That's a useful log file to have. I've been using the cache file and saving to the db when not in production.

    The log file reads:

    [09-Mar-2015 17:01:00 Europe/Paris] PHP Warning: require_once(C:/Program Files (x86)/EasyPHP-DevServer-14.1VC11/data/localweb/projects/product/plugins/riCjLoader/RiCjLoaderPlugin.php): failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\productbackup\includes\init_includes\init_ricjlo ader.php on line 12

    [09-Mar-2015 17:01:00 Europe/Paris] PHP Fatal error: require_once(): Failed opening required 'C:/Program Files (x86)/EasyPHP-DevServer-14.1VC11/data/localweb/projects/product/plugins/riCjLoader/RiCjLoaderPlugin.php' (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\productbackup\includes\init_includes\init_ricjlo ader.php on line 12
    I have searched the files using the admin developers tool and I find NO code calling the "require_once" listed in the log. THAT is the file/db entry -- whichever it might be, that I seek.

    I don't have these files in the copy of our old site that I have. So, obviously there is a module that I missed. I have no right clue what it is or where it is written into my code.

    I have searched to find out what the file it's looking for and I cannot find that either.

    Quote Originally Posted by mc12345678 View Post
    Please when posting identify what actions were attempted, what reviews were performed and the success/failure of each... This will help those helping you and possibly someone that ends up having the same issue.
    The only actions I am attempting is to SAVE the edits to the define page in the define editor. When I hit enter it resorts to main site's page not found. There is no error message, other than what is in that log file.

    I appreciate the help. I'm scratching my head here.

    Also please forgive me if you think I'm not quite speaking your language. I am self-taught here and I think my teacher is a drunk. ;)

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: database writing problem...

    Nope, language seems fine. Basically all the questions/actions were described throughout, thoough one question is not specifically answered (path of define_main_page.php when attempting to edit it).

    So the next thing to discover/understand is what the content is being entered? Though, technically to get the content immediately pushed to the site you could directly edit the file using a plain text editor...

    If posting the content please enclose in [CODE][/CODE] tags created by pressing the # symbol in the message reply toolbar.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: database writing problem...

    Quote Originally Posted by Pepperfire View Post
    I would love to have been able to do that, but I was unfortunately not in receipt of a build file showing WHAT had been added by the previous admin and had to fly by the seat of my pants to do that. So, NO, that procedure was not followed.
    Actually if you still have the fileset you can download an old copy of the previous ZC version from http://www.zen-cart.com/getit and compare the clean version against the "old" version, but at this point I'd wait to do this until a functional version was up...
    Quote Originally Posted by Pepperfire View Post
    That's a useful log file to have. I've been using the cache file and saving to the db when not in production.

    The log file reads:

    Code:
    [09-Mar-2015 17:01:00 Europe/Paris] PHP Fatal error: require_once(): Failed opening required 'C:/Program Files (x86)/EasyPHP-DevServer-14.1VC11/data/localweb/projects/product/plugins/riCjLoader/RiCjLoaderPlugin.php' (include_path='.;C:\php\pear') in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\productbackup\includes\init_includes\init_ricjlo ader.php on line 12
    I have searched the files using the admin developers tool and I find NO code calling the "require_once" listed in the log. THAT is the file/db entry -- whichever it might be, that I seek.

    I don't have these files in the copy of our old site that I have. So, obviously there is a module that I missed. I have no right clue what it is or where it is written into my code.

    I have searched to find out what the file it's looking for and I cannot find that either.
    The problem file (causing the logged error but not necessarily causing the issue of the OP) is: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\productbackup\includes\init_includes\init_ricjlo ader.php

    Because it is in the init_includes folder (and likely called by another loader elsewhere to be discovered after removal of that file) it is trying to do it's thing which it can not because of whatever else is missing or not right.

    I'm pretty sure someone will say that should address the original issue first... Regardless keep track of what you're doing, what needs to be done, and while I suggest enjoying your Saturday don't get to be like your teacher.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Not writing shipping and billing info into database
    By BongoFletch in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 19 Jan 2011, 07:56 PM
  2. Help needed fixing DirectOne module - writing to database.
    By shaztesting in forum Addon Payment Modules
    Replies: 1
    Last Post: 5 Aug 2009, 01:59 PM
  3. extra credit card info not writing to database
    By Minnie Mouse in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 19 Apr 2007, 09:16 PM
  4. Image name not writing to database
    By MikeyG in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 Jul 2006, 01:31 PM

Posting Permissions

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