Okay I installed wwwthreads on a new server a couple of days ago, everything worked fine...I tried posting and got a a whole bunch of errors: Warning: file("http://forums.ogaming.com/filters/badnames") - Success in /home/sites/site36/web/addpost.php on line 149 Warning: Variable passed to each() is not an array or object in /home/sites/site36/web/addpost.php on line 150 Warning: file("http://forums.ogaming.com/filters/badwords") - Success in /home/sites/site36/web/addpost.php on line 517 Warning: Variable passed to each() is not an array or object in /home/sites/site36/web/addpost.php on line 518 Warning: file("http://forums.ogaming.com/filters/usertitles") - Success in /home/sites/site36/web/addpost.php on line 645 Warning: Variable passed to each() is not an array or object in /home/sites/site36/web/addpost.php on line 646 I changed the path from "" to "http://forums.ogaming.com", and installed of "failed" or "this file does not exist, yada, yada" I get success and the odd array error. The problem is I still get [censor][censor] in my post.
This seems to happen on a few systems, so I'm gontg to make a config option to help with this. For now you will want to take a look at <A target="_blank" HREF=http://www.wwwthreads.com/php/showthreaded.php?Cat=&Board=php&Number=32800>this thread</A> as it might be the solution for your problem.
Warning: file("/home/sites/site36/web/filters/badnames") - No such file or directory in /home/sites/site36/web/addpost.php on line 149 Warning: Variable passed to each() is not an array or object in /home/sites/site36/web/addpost.php on line 150
-------------------------------------------------------------------------------------------- during post process:
Warning: file("/home/sites/site36/web/filters/badnames") - No such file or directory in /home/sites/site36/web/addpost.php on line 149 Warning: Variable passed to each() is not an array or object in /home/sites/site36/web/addpost.php on line 150 Warning: file("/home/sites/site36/web/filters/badwords") - No such file or directory in /home/sites/site36/web/addpost.php on line 517 Warning: Variable passed to each() is not an array or object in /home/sites/site36/web/addpost.php on line 518 Warning: file("/home/sites/site36/web/filters/usertitles") - No such file or directory in /home/sites/site36/web/addpost.php on line 645 Warning: Variable passed to each() is not an array or object in /home/sites/site36/web/addpost.php
So, that is the problem. It cannot find the filters directory and files within in the specified path:
Warning: file("/home/sites/site36/web/filters/badnames") - No such file or directory
It should be looking within the directory of your wwwthreads installation, but apparently the directory and files are not there which would cause the problems you are getting.
I am having this problem as well (5.4.3). I get the ...success... not an array... warnings and the [censored]s plastered into the messages. Changing $config[phpurl] to $config[path] doesn't help. Then I just get permission denied errors. Any thoughts? The demo worked fine (after finding some bugfixes on these boards). But the fixes for this problem don't seem to work for me.
Do you have your badwords file uploaded properly and does it have the proper read permissions? These error messages are coming straight from PHP saying that it cannot find the badwords file which leads to the array problems.
hey gang, just wanted to let you know that I stopped getting this error when I deactivated the .htaccess file I had in the main directory... that seemed to cause all the problems... wish I could get it to work *with* that file, but I guess, for now, I'll have to deal... <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" /> matt
Matt? Could it be possible that a directive in the .htaccess file is somehow masking or disabling one of the subdirectories? Just guessing here but I fought that with a different server app once and won't soon forget the nightmare - hehe.