mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:34

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: 08 Dec 2004, 14:17 
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


Report this post
Top
  
Reply with quote  
 Post subject: Error in print_r...
PostPosted: 24 Dec 2004, 20:02 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group