mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Warning: Wrong parameter count for print_r() line 72
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=14&t=165
Page 1 of 1

Author:  MDK [ 08 Dec 2004, 14:17 ]
Post subject:  Warning: Wrong parameter count for print_r() line 72

Sorry, im not a verry havy programmer but just love the OSC product. I followed the serverside setup on this side, when i'm testing the php script on my server i'm getting the following error.

Warning: Wrong parameter count for print_r() in /var/www/html/sites/www.mysite.com/catalog/oscpm1_upload.php on line 72

what is it i'm doing wrong:?

thnx in advance for the feedback

Author:  mvaldez [ 24 Dec 2004, 20:02 ]
Post subject:  Error in print_r...

MDK:

> Sorry, im not a verry havy programmer
> but just love the OSC product.

Thanks for the comment. :)


> I followed the serverside setup on this side,
> when i'm testing the php script on my server
> i'm getting the following error. Warning: Wrong
> parameter count for print_r() in /var/www/html/sites
> /www.mysite.com/catalog/oscpm1_upload.php on line 72
> what is it i'm doing wrong:? thnx in advance
> for the feedback

That error means the version of PHP in your server is lower than 4.3.0. That is a bug, my mistake.

I'll provide a solution for that problem in the next version.
But to fix your problem right now just comment out the lines with the print_r sentence using "//". It would look like this:

Code:
if (!$opm_browser_debug) {
//  opm_FNDebug_Log (print_r ($_POST, true));
}
else {
//  opm_FNDebug_Log (print_r ($_GET, true));
}



Commenting them out should fix the problem. Those lines are to store the data passed to the script in a debug log, so, if you are not debugging the PHP script, it will not affect you. :)


Regards,

Mario A. Valdez-Ramirez.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/