PDA

View Full Version : Wrong Datatype


tbsingleton73
01-15-2008, 11:30 AM
Hi,

I'm new to the forum.
I recently found Pixelpost and put 1.7RC1 on my site. It's not in professional site so no huge issues if something goes wrong.
Yesterday when I noticed that the final version of 1.7 was out, I decided to upgrade my site.
I am using a modified horizon theme so maybe this has something to do with my problem.
The error I'm getting, I see on the Images page of my Admin logon.

Above each image I have on my site is shows the following error/warning:
"Warning: in_array() [function.in.array]: Wrong datatype for second argument in .../photoblog/admin/images_edit.php on line 575"

Line 575 of /admin/images_edit.php reads:
<input type=\"checkbox\" class=\"images-checkbox\" name=\"moderate_image_boxes[]|" value=\"$id\" ".(in_array($id, $_POST['moderate_image_boxes' ])?' checked':' ')."/>

If I understand the error and code correctly, and I'm very new to this so maybe I don't. It seems to say that there is a problem with the 2nd arguement in the in_aray, which would be "$_POST". Is this correct?
I know my issue came from a bad upgrade, bad meaning, I screwed it up. Or likely because I'm using the 1.7RC version of horizon theme that I customized.
I would hate to have to do a complete reinstall of 1.7 and modify the theme to my likeing but I would if no one has any ideas.

I'm hoping someone understand the error message and know what code I can adjust to resolve the error.

Thanks in adance for your help.

Dkozikowski
01-15-2008, 11:35 AM
That WARNING is there because the second argument is missing due to no $_POST value being present.

It's not a big issue. Your site will function 100%. I'll be the first to admit it's bad programming, plain and simple.

tbsingleton73
01-15-2008, 11:46 AM
Thanks dwilkinsjr,

If it's nothing to worry about, then I won't. I just thought I might have messed something up.
And, you're correct, my site functions correctly with no issues.

Dkozikowski
01-15-2008, 11:50 AM
No worries. If it was and error then it would be a problem but it's only a warning.

I'll see what i can do to get rid of it in the next couple of days.

tbsingleton73
01-15-2008, 11:55 AM
Thanks dwilkinsjr,

I must say, I love Pixelpost, works great, easy to install and modify.
Better than any other app I've tried.

Dkozikowski
01-15-2008, 11:57 AM
I'm glad to hear it :)

Enjoy!