Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Feb 2010
    Posts
    74
    Plugin Contributions
    0

    Default does anybody know why the first page is not loading?

    we have been editing the descriptions of items in the catalog....and now the first page is not loading correctly...
    here is the log file ...what does it mean?......thnaks!
    [01-Oct-2020 18:47:00 America/Boise] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home4/twomuch1/public_html/leoandmo/includes/classes/usu.php on line 1015
    [01-Oct-2020 18:47:00 America/Boise] PHP Warning: Use of undefined constant ########## - assumed '##########' (this will throw an Error in a future version of PHP) in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php on line 11
    [01-Oct-2020 18:47:00 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php:133
    Stack trace:
    #0 /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php(113): require()
    #1 /home4/twomuch1/public_html/leoandmo/index.php(97): require('/home4/twomuch1...')
    #2 {main}
    thrown in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php on line 133


    ########## = ##########
    Last edited by lrfowler24; 2 Oct 2020 at 02:27 AM.

  2. #2
    Join Date
    Feb 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: does anybody know why the first page is not loading?

    ########## = m-o-z-e-n .....the post keeps editing out m-o-z-e-n

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: does anybody know why the first page is not loading?

    Looks like you're using code designed for PHP 5.2 on a decade-newer PHP version 7.2+

    Both your usu module and your m-o-z-e-n template code are very incompatible with your PHP version. (as evidenced by the "continue 2" warning and the ereg_replace error)

    Time to upgrade your Zen Cart and all your plugins and customizations if you intend to use a modern PHP version on your server.
    .

    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.

  4. #4
    Join Date
    Feb 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: does anybody know why the first page is not loading?

    Quote Originally Posted by DrByte View Post
    Looks like you're using code designed for PHP 5.2 on a decade-newer PHP version 7.2+

    Both your usu module and your m-o-z-e-n template code are very incompatible with your PHP version. (as evidenced by the "continue 2" warning and the ereg_replace error)

    Time to upgrade your Zen Cart and all your plugins and customizations if you intend to use a modern PHP version on your server.
    I upgraded zencart...still don't work...
    here's the log file;
    [05-Oct-2020 12:01:41 America/Boise] Request URI: /index.php?main_page=index&cPath=2_200_201, IP address: 114.119.145.89
    #1 include_once() called at [/home4/twomuch1/public_html/leoandmo/includes/autoload_func.php:28]
    #2 require(/home4/twomuch1/public_html/leoandmo/includes/autoload_func.php) called at [/home4/twomuch1/public_html/leoandmo/includes/application_top.php:219]
    #3 require(/home4/twomuch1/public_html/leoandmo/includes/application_top.php) called at [/home4/twomuch1/public_html/leoandmo/index.php:25]
    --> PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home4/twomuch1/public_html/leoandmo/includes/classes/usu.php on line 1015.

    [05-Oct-2020 12:01:41 America/Boise] Request URI: /index.php?main_page=index&cPath=2_200_201, IP address: 10.179.4.117
    #1 require(/home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php) called at [/home4/twomuch1/public_html/leoandmo/index.php:94]
    --> PHP Warning: Use of undefined constant ########## - assumed '##########' (this will throw an Error in a future version of PHP) in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php on line 11.

    [05-Oct-2020 12:01:41 America/Boise] Request URI: /index.php?main_page=index&cPath=2_200_201, IP address: 10.179.4.117
    #1 require(/home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php) called at [/home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php:113]
    #2 require(/home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php) called at [/home4/twomuch1/public_html/leoandmo/index.php:94]
    --> PHP Warning: Use of undefined constant CALL_HEADING - assumed 'CALL_HEADING' (this will throw an Error in a future version of PHP) in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php on line 54.

    [05-Oct-2020 12:01:41 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php:133
    Stack trace:
    #0 /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php(113): require()
    #1 /home4/twomuch1/public_html/leoandmo/index.php(94): require('/home4/twomuch1...')
    #2 {main}
    thrown in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php on line 133

    [05-Oct-2020 12:01:41 America/Boise] Request URI: /index.php?main_page=index&cPath=2_200_201, IP address: 10.179.4.117
    --> PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php:133
    Stack trace:
    #0 /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php(113): require()
    #1 /home4/twomuch1/public_html/leoandmo/index.php(94): require('/home4/twomuch1...')
    #2 {main}
    thrown in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php on line 133.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: does anybody know why the first page is not loading?

    You need to update your m-o-z-e-n template and the version of USU (https://www.zen-cart.com/downloads.php?do=file&id=132), currently at v3.0.6 and compatible with zc157.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: does anybody know why the first page is not loading?

    Quote Originally Posted by lrfowler24 View Post
    --> PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home4/twomuch1/public_html/leoandmo/includes/classes/usu.php on line 1015.
    As lat9 mentioned, an upgrade to USU should fix that.

    Quote Originally Posted by lrfowler24 View Post
    --> PHP Warning: Use of undefined constant ########## - assumed '##########' (this will throw an Error in a future version of PHP) in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_main_page.php on line 11.
    Your mo zen template common/tpl_main_page.php file has used outdated PHP syntax on line 11.

    Quote Originally Posted by lrfowler24 View Post
    --> PHP Warning: Use of undefined constant CALL_HEADING - assumed 'CALL_HEADING' (this will throw an Error in a future version of PHP) in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php on line 54.
    That tpl_header file in your template is using a constant that's not defined anywhere, and is incompatible with modern PHP.


    Quote Originally Posted by lrfowler24 View Post
    [05-Oct-2020 12:01:41 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /home4/twomuch1/public_html/leoandmo/includes/templates/##########_temp/common/tpl_header.php:133
    As I said before, that template is using an obsolete PHP function ereg_replace() and needs updating, at least in its tpl_header file.
    .

    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
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: does anybody know why the first page is not loading?

    Your old template probably needs many other updates to bring it up to date with latest Zen Cart functionality.
    Part of upgrading is merging your old files with changes made in the newer Zen Cart version.
    When you skip updating things written for older versions you miss out on features and potentially cause bugs or even security problems you weren't expecting.

    Unfortunately a lot of template authors in the internet world abandon their templates after they make them, even though they keep selling old versions, leaving it up to the end-buyer to guess whether it will even work. Hopefully in your case they will provide you with a modern version.
    .

    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.

  8. #8
    Join Date
    Feb 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: does anybody know why the first page is not loading?

    so..I updated zencart and USU...
    page one still not lading ...www.leoandmo.com

    here's the log file:
    Name:  log1.jpg
Views: 90
Size:  68.4 KB

    anybody know how to fix?..I sure don't...

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: does anybody know why the first page is not loading?

    - the template author has incorrectly used an unquoted value that is generating a warning. PHP is treating it as a constant. Since it's lowercase probably it is some array element that was written sloppily and just needs single-quotes around it.

    - then the template author has used a constant that has not been defined. Perhaps it was to be a language string? or maybe a configuration switch? Need to get that added. If CALL_HEADING is supposed to be a title, define it in the template's language file. If it's supposed to be a configuration setting, maybe you didn't install it properly in the template's install SQL?

    - they used ereg_replace which was retired years ago in PHP 5.3. Looks like you renamed that to preg_replace but didn't update the syntax of the regex pattern. Try adding start/end '/' symbol. See https://www.zen-cart.com/entry.php?2...use-on-PHP-5-3
    .

    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.

  10. #10
    Join Date
    Feb 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: does anybody know why the first page is not loading?

    Quote Originally Posted by DrByte View Post
    - the template author has incorrectly used an unquoted value that is generating a warning. PHP is treating it as a constant. Since it's lowercase probably it is some array element that was written sloppily and just needs single-quotes around it.

    - then the template author has used a constant that has not been defined. Perhaps it was to be a language string? or maybe a configuration switch? Need to get that added. If CALL_HEADING is supposed to be a title, define it in the template's language file. If it's supposed to be a configuration setting, maybe you didn't install it properly in the template's install SQL?

    - they used ereg_replace which was retired years ago in PHP 5.3. Looks like you renamed that to preg_replace but didn't update the syntax of the regex pattern. Try adding start/end '/' symbol. See https://www.zen-cart.com/entry.php?2...use-on-PHP-5-3
    drbyte...can u fix this for me?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Does anybody know how to center main page text?
    By mubasher in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jan 2011, 01:16 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR