Menu

Downloads mod - class.DB_Pager Error

Help
Fat Lizard
2003-03-03
2003-03-12
  • Fat Lizard

    Fat Lizard - 2003-03-03

    Just installed downloads mod, and getting the following errors:

    Warning: Variable passed to reset() is not an array or object in
    \mod\cb_common\class.DB_Pager.php on line 296

    Warning: Invalid argument supplied for foreach() in
    \mod\cb_common\class.DB_Pager.php on line 298

    Anyone have a solution/answer for this?

    phpWS : 0.83
    PHP : 4.0.6

     
    • Michael Cannon

      Michael Cannon - 2003-03-03

      Fatlizard,

      Your PHP is young and cb_common code is generally for PHP 4.2.0 and greater.

      $form_vars = ( 'GET' == $_SERVER['REQUEST_METHOD'] )
          ? $_GET
          : $_POST;

      Anybody remember what the young PHP equivalents are for the above superglobals?

      Thanks,

      Michael

       
      • Fat Lizard

        Fat Lizard - 2003-03-03

        Thanks Michael,

        Remote server is 4.2.2, so I just need to update my local PHP

        Cheers

         
        • Michael Cannon

          Michael Cannon - 2003-03-03

          Fatlizard,

          Yes, updating PHP on your local box should do the trick.

          Michael

           
        • CrashWave

          CrashWave - 2003-03-12

          Hold on guys
          What abut htose still having that error and cannot change their php

           
          • Fat Lizard

            Fat Lizard - 2003-03-12

            On a local PC, this shouldn't be a problem.
            If the problem is your remote host, then perhaps it's time to change hosts?

            Fat Lizard
            www.fatlizard.com.au

             
    • CrashWave

      CrashWave - 2003-03-12

      fat fingures...those.
      I just installed it and have error

      Fatal error: Cannot instantiate non-existent class: db_pager in /........./mod/downloads/downloads_admin.php on line 134

       
      • Michael Cannon

        Michael Cannon - 2003-03-12

        Does mod/cb_common exist also?

        Have you tried grabbing the beta release of downloads and installing that?

        Michael

         
    • CrashWave

      CrashWave - 2003-03-12

      also

      Fatal error: Call to undefined function: previous_page() in /........../mod/downloads/index.php on line 191

      Fatal error: Cannot instantiate non-existent class: db_pager in /........../mod/downloads/downloads.php on line 636

       

Log in to post a comment.