Free Adult Tube-Video Script Forum
what can cause this problem in functions.php - Printable Version

+- Free Adult Tube-Video Script Forum (http://freeadultscript.com/forum)
+-- Forum: My Category (/forumdisplay.php?fid=1)
+--- Forum: Bugs Report (/forumdisplay.php?fid=3)
+--- Thread: what can cause this problem in functions.php (/showthread.php?tid=539)



what can cause this problem in functions.php - Boby - 31-05-2011 11:45 PM

Warning: shuffle() expects parameter 1 to be array, null given in /public_html/include/functions.php on line 2026

Warning: array_slice() expects parameter 1 to be array, null given in /public_html/include/functions.php on line 2027

Warning: Invalid argument supplied for foreach() in /public_html/include/functions.php on line 2029
this is hapening on all mine sites on this script
thanks

also i have problem with spamers on comments and i disable comments but they are coming everyday again

thanks


RE: what can cause this problem in functions.php - admin - 01-06-2011 12:39 AM

did u upgrade to new version?


RE: what can cause this problem in functions.php - Boby - 01-06-2011 04:31 PM

yes i upgrade it
i dont know what cause this


RE: what can cause this problem in functions.php - Punktured - 03-06-2011 12:05 PM

if you have disabled comments, i am unsure how they can be still adding comments...


RE: what can cause this problem in functions.php - Boby - 03-06-2011 02:50 PM

they still add hahaha


RE: what can cause this problem in functions.php - Punktured - 03-06-2011 03:26 PM

hmm, one theory could be.....

when comments are disabled,
they arent actually disabled,
but instead, the comment form is just hidden from the browser...
which, if this is the case, a "comment bot" could theoretically still add comments....

not a wise way to set up comment disabling, but dont quote me, i am not sure if that is how it is set up....

i shall have a deeper look when i get the time, to see exactly how the comment disabling is setup and get back to you...


RE: what can cause this problem in functions.php - Boby - 07-06-2011 01:20 AM

server was banned from to get google results thats the reason of problems in function.php
admin said me to disable that option and all is good
about comments they are killing me
10 pages a day
hahaha


RE: what can cause this problem in functions.php - Punktured - 07-06-2011 03:17 AM

in functions.php
there is a function

function post_comment()

try to rename that function to something like

function post_comment_1()

that might stop the comments being posted...