[Phpslash-devel] Odd Problems with Comments
Brought to you by:
joestewart,
nhruby
From: Mike G. <mi...@op...> - 2003-10-22 01:21:12
|
Matthew, I think you hit the nail on the head here. Thanks for seeing what I missed. On Tue, 2003-10-21 at 11:57, Matthew Leingang wrote: > On Tue, 2003-10-21 at 09:09, Mike Gifford wrote: > > This is a Back-End problem using psl code. I just had one of my users > > check out psl 7.2 on their server and it is working just fine. The BE > > comment code is based on psl 0.7.1. > > The problem is that in posting comments to the poll or to articles the > > user gets a very, very long string of errors: > You mean a very, very long string of warnings, don't you? :-) Indeed.. I've got my warnings turned off, which is why I didn't see them on my default install.... This wouldn't be visible if this were uncommented in the config.php file, right: ini_set('error_reporting', 'E_ALL~E_NOTICE'); That is assuming that php scripts had the permission. I had my php.ini set for so surprised I didn't see the errors: error_reporting = E_ALL > > > > The comment function which gives > > > > the following error on a loop with about 1138 entries > > > > when previewing or posting:- > > > > -------------- > > > > Warning: Invalid argument supplied for foreach() in > > > > /home/harbour/class/lib.resources.php on line 343 > > > > -------------- > > This refers to the following foreach in the lib.resources.php > > > > > foreach($requirements as $req) { > You might could change this to > foreach((array)$requirements as $req) { It doesn't give me an error and I'm not seeing the warnings either way. Rob, does this resolve the problem for you? > See if that works. Thanks! Mike -- Mike Gifford, OpenConcept Consulting Free Software for Social Change -> http://www.openconcept.ca Beads of Hope Campaign - http://uc.openconcept.ca/petition.php Nonconformity is the highest evolutionary attainment of social animals - Aldo Leopold |