I don't know if this is actually part of Drupal or not. If so, then the error message needs to actually say something about where the "redeclare" is. right now, it says:

Fatal error:Cannot redeclare openfile() (previously declared in /home/content/m/w/e/mwease/html/dev/tlp1/sites/default/files/filesecurity.php:6) in /home/content/m/w/e/mwease/html/dev/tlp1/sites/default/files/filesecurity.php on line 23

so, i know the problem . however, the redeclaration of the function did not happen in the include file, which is what it actually states here. it obviously happened in when the file was included in another file.

i have found that one apparently cannot include a file containing a function in a page body AND include that same file with the same function in a block body used on that page.

i have found that one apparently cannot include a file containing a function in a the "additional validation" part of a Webform AND include that same file with the same function in the "additional processing" part of the same Webform.

i may have found out something else about it, but can't remember now.

the bottom line is that i'm pretty certain that i DO NOT have this problem on the site when i'm on the site, but CRON fails every night with this error and i have no idea where in my site i am including this file/function. i've looked at all the code.

if this is a Drupal problem that can be fixed, we can get rid of several hundred questions about it in the forums and elsewhere.

thanks,

mike wease

Comments

mwease’s picture

It appears that nobody is reading these, but i'm determined to put them in, anyway.

it's not just the message. i was getting the CRON failure on a few other functions that i used in multiple places. i just plain need to do that or duplicate the function with the code instead of including it. today (and for several weeks) the message pointed to a function i got from someone else which was ONLY used within the same include file in another function 6 times. i couldn't run cron to find out what modules needed updated. the function in question simply did an arithmetic function or two to the passed variable, so i just replaced the 6 function calls with the actual arithmetic functions. voila! no cron error.

either this message is because the function is USED more than once in the same file or it's just a bogus error that is causing LOTS of people problems.

i expect that i'll be getting it again on the first file i mentioned in the above post in the very near future...like tonight.

mwease’s picture

well, it's 3 days short of having been AN ENTIRE FUCKING MONTH since i posted this BUG REPORT. i'm learning every day NEVER to use free software again.

thanks so much. please ignore the other problems i have found, as everybody has been, with this mediocre system.

so much for 'contributing'.

Michael R. Wease

vincentsking’s picture

I have the same problem