Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2015
    Posts
    408
    Plugin Contributions
    0

    Default Upgrade error CSS/JS LOADER

    I am getting an error when enabling css/jloader


    [16-Nov-2022 18:56:45 Europe/Berlin] PHP Fatal error: Uncaught TypeError: floor(): Argument #1 ($num) must be of type int|float, string given in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php:447
    Stack trace:
    #0 C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php(447): floor('107.0.0.0')
    #1 C:\xampp\htdocs\xxx.com\includes\templates\theme871\common\html_header.php(79): RiCjLoaderPlugin->loadCssJsFiles()
    #2 C:\xampp\htdocs\xxx.com\index.php(42): require('C:\\xampp\\htdocs...')
    #3 {main}
    thrown in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php on line 447

    [16-Nov-2022 18:56:45 Europe/Berlin] Request URI: /xxx.com/, IP address: ::1
    --> PHP Fatal error: Uncaught TypeError: floor(): Argument #1 ($num) must be of type int|float, string given in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php:447
    Stack trace:
    #0 C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php(447): floor('107.0.0.0')
    #1 C:\xampp\htdocs\xxx.com\includes\templates\theme871\common\html_header.php(79): RiCjLoaderPlugin->loadCssJsFiles()
    #2 C:\xampp\htdocs\xxx.com\index.php(42): require('C:\\xampp\\htdocs...')
    #3 {main}
    thrown in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php on line 447.


    this is whats on line 447

    Code:
    $browser_version = floor($browser->getVersion());
    If someone could assist me that would be great

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,633
    Plugin Contributions
    11

    Default Re: Upgrade error CSS/JS LOADER

    Quote Originally Posted by chadlly2003 View Post
    I am getting an error when enabling css/jloader


    [16-Nov-2022 18:56:45 Europe/Berlin] PHP Fatal error: Uncaught TypeError: floor(): Argument #1 ($num) must be of type int|float, string given in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php:447
    Stack trace:
    #0 C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php(447): floor('107.0.0.0')
    #1 C:\xampp\htdocs\xxx.com\includes\templates\theme871\common\html_header.php(79): RiCjLoaderPlugin->loadCssJsFiles()
    #2 C:\xampp\htdocs\xxx.com\index.php(42): require('C:\\xampp\\htdocs...')
    #3 {main}
    thrown in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php on line 447

    [16-Nov-2022 18:56:45 Europe/Berlin] Request URI: /xxx.com/, IP address: ::1
    --> PHP Fatal error: Uncaught TypeError: floor(): Argument #1 ($num) must be of type int|float, string given in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php:447
    Stack trace:
    #0 C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php(447): floor('107.0.0.0')
    #1 C:\xampp\htdocs\xxx.com\includes\templates\theme871\common\html_header.php(79): RiCjLoaderPlugin->loadCssJsFiles()
    #2 C:\xampp\htdocs\xxx.com\index.php(42): require('C:\\xampp\\htdocs...')
    #3 {main}
    thrown in C:\xampp\htdocs\xxx.com\plugins\riCjLoader\RiCjLoaderPlugin.php on line 447.


    this is whats on line 447

    Code:
    $browser_version = floor($browser->getVersion());
    If someone could assist me that would be great
    chad,
    i am 99% sure that there are no version specific assets you are loading here. i could be wrong.

    you can safely remove the floor function, ie:

    PHP Code:
    $browser_version $browser->getVersion(); 
    best.
    author of square Webpay. called the savior by the chief bottle washer...
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    available for hire.

 

 

Similar Threads

  1. v153 CSS JS Loader [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 168
    Last Post: 3 Aug 2023, 03:37 PM
  2. v156 Css/js loader defer Question
    By chadlly2003 in forum General Questions
    Replies: 5
    Last Post: 14 Oct 2019, 12:00 PM
  3. v151 CSS/JS Loader installation question
    By McLovin in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 Feb 2014, 06:28 PM
  4. css/js loader !!
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Nov 2011, 01:19 PM
  5. CJ Loader (CSS/Javascript Loader) plugin function is not loaded by zen cart?
    By tripflex in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Jul 2011, 03:55 PM

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