If this is your first visit, check our documentation. To post, register or login.

Info Pages Problem

Locked

Started by jacque427 on 2 Feb 2007, 10:13 PM · Views: 1,802

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
2 Feb 2007, 10:13 PM
#1
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

Info Pages Problem

After installing infopages 2, I am now receiving the following errors in the administrative side:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/httpd/vhosts/freshabundance.com/httpdocs/xxx/infopages2.php on line 237

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/httpd/vhosts/freshabundance.com/httpdocs/xxx/includes/classes/object_info.php on line 29

Warning: Variable passed to each() is not an array or object in /home/httpd/vhosts/freshabundance.com/httpdocs/xxx/includes/classes/object_info.php on line 30

I am using ZC 1.2.6, PHP 5.04, and MySQL 4.1.21

Here are the lines the error message refers to:

line 237  of infopages2.php: $bInfo_array = array_merge($pages->fields, $info);
line 29 of object_info.php: reset($object_array);
line 30 of object_info.php: while (list($key, $value) = each($object_array)) {

What's kind of odd is that my first version of info pages works just fine.

And yes, I know, I should upgrade to 1.3. I will, just need some more $$ so a real developer can do it.

Jacque

Just knowledgeable enough to be dangerous.

3 Feb 2007, 1:10 AM
#2
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

Re: Info Pages Problem

Found the answer in an old thread...

Change line 237 in infopages2.php from:
$bInfo_array = array_merge($pages->fields, $info);

To:
$bInfo_array = $pages->fields;

Just knowledgeable enough to be dangerous.