0
Welcome Guest! Login
0 items Join Now

getJsChecks Throwing Error

  • getJsChecks Throwing Error

    Posted 13 years 4 months ago
    • Hi,

      I am getting an error when switching templates from a YooTheme Warp-based template to a RocketTheme gantry-based template. Here it is:
      Warning: Invalid argument supplied for foreach() in /home/seangore/public_html/libraries/gantry/core/gantryplatform.class.php on line 104
       
      Warning: Invalid argument supplied for foreach() in /home/seangore/public_html/libraries/gantry/core/gantryplatform.class.php on line 104
       
      Warning: Invalid argument supplied for foreach() in /home/seangore/public_html/libraries/gantry/core/gantryplatform.class.php on line 104

      Here is the code that's causing errors:
      function getJSChecks($file, $keep_path = false){
                $checkfiles = array();
                $ext = substr($file, strrpos($file, '.'));
                $path = ($keep_path)?dirname($file).DS:'';
                $filename = basename($file, $ext);
                foreach($this->_js_file_checks as $suffix){
                     $checkfiles[] = $path.$filename.$suffix.$ext;
                }
                return $checkfiles;
           }

      Normally, I would try to debug this myself, but since this is a little beyond the scope of what I've done in PHP I am hoping someone can give me some direction as to what needs to be done.

      Thanks for any help.
    • Debbie's Avatar
    • Debbie
    • Newbie
    • Posts: 3
    • Thanks: 0

    Re: getJsChecks Throwing Error

    Posted 13 years 4 months ago
    • I am getting the same error -

      Warning: Invalid argument supplied for foreach() in /home/content/90/6303890/html/fst/libraries/gantry/core/gantryplatform.class.php on line 104

      I am running joomla 1.7 and am trying to use syndicate template
  • Re: getJsChecks Throwing Error

    Posted 13 years 4 months ago
    • Debbie wrote:
      I am getting the same error -

      Warning: Invalid argument supplied for foreach() in /home/content/90/6303890/html/fst/libraries/gantry/core/gantryplatform.class.php on line 104

      I am running joomla 1.7 and am trying to use syndicate template
      Let's get an answer! @Rockettheme, we are calling you!
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: getJsChecks Throwing Error

    Posted 13 years 4 months ago
    • Please make sure that you are using the latest version of the Gantry Framework: www.gantry-framework.org 8)
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: getJsChecks Throwing Error

    Posted 13 years 4 months ago
    • prim wrote:
      Please make sure that you are using the latest version of the Gantry Framework: www.gantry-framework.org 8)
      That fixed it! Thanks!

Time to create page: 0.062 seconds