Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what can cause this problem in functions.php
31-05-2011, 11:45 PM
Post: #1
what can cause this problem in functions.php
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
Find all posts by this user
Quote this message in a reply
01-06-2011, 12:39 AM
Post: #2
RE: what can cause this problem in functions.php
did u upgrade to new version?
Find all posts by this user
Quote this message in a reply
01-06-2011, 04:31 PM
Post: #3
RE: what can cause this problem in functions.php
yes i upgrade it
i dont know what cause this
Find all posts by this user
Quote this message in a reply
03-06-2011, 12:05 PM
Post: #4
RE: what can cause this problem in functions.php
if you have disabled comments, i am unsure how they can be still adding comments...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
03-06-2011, 02:50 PM
Post: #5
RE: what can cause this problem in functions.php
they still add hahaha
Find all posts by this user
Quote this message in a reply
03-06-2011, 03:26 PM
Post: #6
RE: what can cause this problem in functions.php
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...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
07-06-2011, 01:20 AM
Post: #7
RE: what can cause this problem in functions.php
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
Find all posts by this user
Quote this message in a reply
07-06-2011, 03:17 AM
Post: #8
RE: what can cause this problem in functions.php
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...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: