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
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
Thanks Michael,
Remote server is 4.2.2, so I just need to update my local PHP
Cheers
Yes, updating PHP on your local box should do the trick.
Hold on guys What abut htose still having that error and cannot change their php
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
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
Does mod/cb_common exist also?
Have you tried grabbing the beta release of downloads and installing that?
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.
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
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
Thanks Michael,
Remote server is 4.2.2, so I just need to update my local PHP
Cheers
Fatlizard,
Yes, updating PHP on your local box should do the trick.
Michael
Hold on guys
What abut htose still having that error and cannot change their php
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
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
Does mod/cb_common exist also?
Have you tried grabbing the beta release of downloads and installing that?
Michael
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