Hi everyone,

I am running Drupal 5.1 install, and getting the following error message at times.
(I tried to search the forums, but can find no error similar to this one)

warning: array_pop() [function.array-pop]: The argument should be an array in /home/whtaft1/public_html/includes/common.inc(1342) : eval()'d code on line 9.

(Full error message)

Type php
Date Thursday, May 17, 2007 - 14:13
User Admin
Location http://authorpool.com/node/124
Referrer http://www.authorpool.com/admin/logs/event/2746
Message array_pop() [function.array-pop]: The argument should be an array in /home/whtaft1/public_html/includes/common.inc(1342) : eval()'d code on line 9.
Severity error
Hostname 166.68.134.175

Does anyone know what this is and how to fix ?

I'm offering $10.00 US via paypal.

Seanm

Comments

rszrama’s picture

Could perhaps be your custom blocks? Are they set to PHP input format and with bad values? That's all I can see off the top of my head. I guess really there's no way for us to know what's calling drupal_eval on your site to cause that error.

My hunch is you have some bad PHP in that second block that's showing up empty. Look for where you're using array_pop and see what variable you're trying to do that to. You can do some safety type checking by couching that code in an is_array($val). But like I said, without seeing the code there's no way to tell.

Roberto Gerola’s picture

Before then line 1342 in common.inc

print eval('?>'. $code); 

could you put this code ?

echo '<pre>';
print_r($code);
echo '</pre>';

So we can have a clue what to search and fix.

Roberto

--
http://www.speedtech.it