Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Error in advanced search page.

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]


    zen 1.5.5f - php 7.1

    this appears to happen in the advanced search? if i go directly to the advanced search page - nothing come up - https://swordsofhonor.com/index.php?...dvanced_search

    [08-Dec-2018 00:31:24 UTC] Request URI: /index.php?main_page=advanced_search&search_in_description=1&keyword=dental%20pla ster&inc_subcat=0&sort=20a, IP address: 99.230.146.113
    #1 require() called at [/home/honor/public_html/includes/modules/pages/advanced_search/header_php.php:13]
    #2 require(/home/honor/public_html/includes/modules/pages/advanced_search/header_php.php) called at [/home/honor/public_html/index.php:36]

    [08-Dec-2018 00:31:24 UTC] PHP Warning: require(includes/classes/recaptchalib.php): failed to open stream: No such file or directory in /home/honor/public_html/includes/modules/pages/advanced_search/header_php.php on line 13
    [08-Dec-2018 00:31:24 UTC] Request URI: /index.php?main_page=advanced_search&search_in_description=1&keyword=dental%20pla ster&inc_subcat=0&sort=20a, IP address: 99.230.146.113
    #1 require() called at [/home/honor/public_html/includes/modules/pages/advanced_search/header_php.php:13]
    #2 require(/home/honor/public_html/includes/modules/pages/advanced_search/header_php.php) called at [/home/honor/public_html/index.php:36]

    [08-Dec-2018 00:31:24 UTC] PHP Warning: require(includes/classes/recaptchalib.php): failed to open stream: No such file or directory in /home/honor/public_html/includes/modules/pages/advanced_search/header_php.php on line 13
    [08-Dec-2018 00:31:24 UTC] PHP Fatal error: require(): Failed opening required 'includes/classes/recaptchalib.php' (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/honor/public_html/includes/modules/pages/advanced_search/header_php.php on line 13

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,559
    Plugin Contributions
    89

    Default Re: Error in advanced search page.

    Your advanced search page is assuming that ReCAPTCHA was installed, and it apparently wasn't. Restore from a fresh download the file
    includes/modules/pages/advanced_search/header_php.php
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  3. #3
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Error in advanced search page.

    Quote Originally Posted by swguy View Post
    Your advanced search page is assuming that ReCAPTCHA was installed, and it apparently wasn't. Restore from a fresh download the file
    includes/modules/pages/advanced_search/header_php.php
    tried and it got rid of the recaptcha error but still this error:

    [08-Dec-2018 05:38:50 UTC] Request URI: /index.php?main_page=advanced_search_result&keyword=merlin&search_in_description= 1&categories_id=&inc_subcat=1&manufacturers_id=&pfrom=&pto=&dfrom=&dto=&x=36&y=1 8, IP address: 160.3.207.42
    #1 require(/home/honor/public_html/includes/modules/pages/advanced_search_result/header_php.php) called at [/home/honor/public_html/index.php:36]

    [08-Dec-2018 05:38:50 UTC] PHP Warning: A non-numeric value encountered in /home/honor/public_html/includes/modules/pages/advanced_search_result/header_php.php on line 396
    [08-Dec-2018 05:38:50 UTC] Request URI: /index.php?main_page=advanced_search_result&keyword=merlin&search_in_description= 1&categories_id=&inc_subcat=1&manufacturers_id=&pfrom=&pto=&dfrom=&dto=&x=36&y=1 8, IP address: 160.3.207.42
    #1 require(/home/honor/public_html/includes/modules/pages/advanced_search_result/header_php.php) called at [/home/honor/public_html/index.php:36]

    [08-Dec-2018 05:38:50 UTC] PHP Warning: A non-numeric value encountered in /home/honor/public_html/includes/modules/pages/advanced_search_result/header_php.php on line 397

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,559
    Plugin Contributions
    89

    Default Re: Error in advanced search page.

    The error
    A non-numeric value encountered in /home/honor/public_html/includes/modules/pages/advanced_search_result/header_php.php on line 397

    is not consistent with a pristine copy of this file - that line should be blank. Please double check.
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  5. #5
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Error in advanced search page.

    Quote Originally Posted by swguy View Post
    The error
    A non-numeric value encountered in /home/honor/public_html/includes/modules/pages/advanced_search_result/header_php.php on line 397

    is not consistent with a pristine copy of this file - that line should be blank. Please double check.
    here is the coding around line 397 - Click image for larger version. 

Name:	2018-12-08_1727.jpg 
Views:	9 
Size:	24.7 KB 
ID:	18165
    Attached Images Attached Images  
    Last edited by lidlchris; 9 Dec 2018 at 01:29 AM. Reason: wrong image

  6. #6
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Error in advanced search page.

    woops, wrong coding - there is the correct coding
    Click image for larger version. 

Name:	2018-12-08_1727.jpg 
Views:	19 
Size:	24.7 KB 
ID:	18164
    Last edited by lidlchris; 9 Dec 2018 at 01:28 AM. Reason: wrong image

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,401
    Plugin Contributions
    2

    Default Re: Error in advanced search page.

    do not post code in images. it is far easier for anyone to read it if you copy and paste it embedded within BB code tags. see link just above footer on this page for info on BB code.

    add:

    (int)

    just before the $_GET on lines 396 and 397

    best.
    no good deed goes unpunished. help out with the green....

  8. #8
    Join Date
    Jul 2012
    Posts
    14,310
    Plugin Contributions
    17

    Default Re: Error in advanced search page.

    Quote Originally Posted by carlwhat View Post
    do not post code in images. it is far easier for anyone to read it if you copy and paste it embedded within BB code tags. see link just above footer on this page for info on BB code.

    add:

    (int)

    just before the $_GET on lines 396 and 397

    best.
    Why an integer rather than a floating point number or a determination of if it is set or not to then determine a value against which to calculate? Won't forcing either the provided value or the calculated value to an integer cause a sort of "rounding" issue? 24.99 set to an integer would result in 24, 24.99/10 set to an integer would result in 2 instead of 2.50 or 2.499...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,401
    Plugin Contributions
    2

    Default Re: Error in advanced search page.

    Quote Originally Posted by mc12345678 View Post
    Why an integer rather than a floating point number or a determination of if it is set or not to then determine a value against which to calculate? Won't forcing either the provided value or the calculated value to an integer cause a sort of "rounding" issue? 24.99 set to an integer would result in 24, 24.99/10 set to an integer would result in 2 instead of 2.50 or 2.499...
    true.

    you can use float.

  10. #10
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Error in advanced search page.

    Quote Originally Posted by mc12345678 View Post
    Why an integer rather than a floating point number or a determination of if it is set or not to then determine a value against which to calculate? Won't forcing either the provided value or the calculated value to an integer cause a sort of "rounding" issue? 24.99 set to an integer would result in 24, 24.99/10 set to an integer would result in 2 instead of 2.50 or 2.499...
    would i use (float) instead of (int)

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 5 Sep 2014, 01:05 PM
  2. Replies: 10
    Last Post: 4 Oct 2010, 11:08 PM
  3. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  4. Remove 'Search by Date Added' field from advanced search page?
    By gaffettape in forum General Questions
    Replies: 7
    Last Post: 24 Jan 2010, 03:34 PM
  5. How to align search criteria boxes on advanced search page?
    By shinyadornments in forum Basic Configuration
    Replies: 1
    Last Post: 29 Jan 2008, 06:36 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