Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Info Pages Problem

    Upon moving to a new host that uses PHP 5.04 my info pages no longer work.

    I am using ZC 1.2.6 and after fixing some code in /infopages.php still get the following error when attemping to access the info page:

    Code:
    Warning: main(includes/templates/template_default/templates/tpl_infopagesphp_default.php)
    [function.main]: failed to open stream: No such file or directory
    in /includes/templates/custom/common/tpl_main_page.php on line 74
    
    Fatal error: main() [function.require]: Failed opening 
    required 'includes/templates/template_default/templates/tpl_infopagesphp_default.php' (include_path='.') 
    in /includes/templates/custom/common/tpl_main_page.php on line 74
    Other than the host change and fixing the code in infopages.php to get it to work via the admin side I haven't changed anything.

    Suggestions? (besides upgrade to ZC 1.3)

    Jacque

  2. #2
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Info Pages Problem

    Quote Originally Posted by jacque427 View Post
    (includes/templates/template_default/templates/tpl_infopagesphp_default.php)
    [function.main]: failed to open stream: No such file or directory



    Fatal error: main() [function.require]: Failed opening
    required 'includes/templates/template_default/templates/tpl_infopagesphp_default.php'
    What is a URL to one of your infopages?
    It looks like you're using a URL that says something like "main_page=infopagesphp" when it should just be "main_page=infopages"
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: Info Pages Problem

    Right! Manually removing the .php from the url makes it work.

    *Now* I found a new problem. I went to my developers tool kit (what an awesome tool! Couldn't work without it.) and entered "main_page=infopages.php" to find what pages to edit and received the following error when attempting to search:

    Code:
    Warning: dir(/home/httpd/vhosts/freshabundance.com/httpdocs//_private) [function.dir]: failed to open dir: Permission denied in 
    /home/httpd/vhosts/freshabundance.com/httpdocs/admin/developers_tool_kit.php on line 36
    
    Fatal error: Call to a member function read() on a non-object in /home/httpd/vhosts/freshabundance.com/httpdocs/admin/developers_tool_kit.php on line 38
    I'm guessing it's another PHP 5 error.

    Here is the applicable code from developers_tool_kit.php lines 34 through 47

    Code:
    // add directory name to the sub_dir_files list;
        $sub_dir_files[] = $dirName;
        $d = dir($dirName);
        $file_extension = '.php';
        while($entry = $d->read()) {
          if ($entry != "." && $entry != "..") {
            if (is_dir($dirName."/".$entry)) {
              if ($entry == 'CVS') {
              // skip
              } else {
                getDirList($dirName."/".$entry);
              }
            } else {
              if (substr($entry, strrpos($entry, '.')) == $file_extension) {
    jacque

    Just knowledgeable enough to be dangerous.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Info Pages Problem

    That problem was resolved in v1.3 :)
    It was grabbing non-Zen Cart folders for the search.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: Info Pages Problem

    Yikes! Can I get it to work before I upgrade? As soon as I get the $$ I'll be contacting you to get it done. Just need a fix till then.

    Just knowledgeable enough to be dangerous.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Info Pages Problem

    I *think* you can probably safely grab the /admin/developers_toolkit.php from the latest v1.3 version and use it in 1.2.7.
    Just rename the old one with _old and upload the new one.
    Give it a try... won't harm anything.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: Info Pages Problem

    That did the trick! Dang! You're good. I'll be PM'ing you for the upgrade when we get the funds.

    That's *way* above me.

    Jacque

    Just knowledgeable enough to be dangerous.

  8. #8
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: Info Pages Problem

    For those that do a search and find this thread and have the same problem..


    Edit /includes/extra_datafiles/infopages_filenames.php around line 23 and remove the .php from infopages so that it looks like this

    Code:
    define('FILENAME_INFOPAGES', 'infopages');

    jacque

    Just knowledgeable enough to be dangerous.

 

 

Similar Threads

  1. v150 Styling the price and "... more info" on my product info pages
    By coreyalderin in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Oct 2012, 03:35 PM
  2. Display Order Problem - Product Info Pages
    By philip937 in forum General Questions
    Replies: 6
    Last Post: 16 Jun 2011, 01:57 AM
  3. Replies: 6
    Last Post: 2 Aug 2009, 06:33 AM
  4. Info Pages Problem
    By jacque427 in forum Addon Sideboxes
    Replies: 1
    Last Post: 3 Feb 2007, 02:10 AM
  5. problem with info pages heading titles
    By icecjan in forum General Questions
    Replies: 1
    Last Post: 23 Oct 2006, 08:24 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