SMF Support > SMF 2.0.x Support
updated to 2.02 and getting this error...
K@:
You'll be most welcome! :)
Glad you're sorted.
DarkAngel612:
Well folks that primary error filling up the logs is back. Seems it came back around the 23rd of this month and like the other time seems it is along with either undefined text or other errors like these:
--- Code: ---[23-Mar-2012 18:01:04] PHP Notice: Undefined index: server in /home/tttt/public_html/ttt/Sources/Subs-Post.php on line 622
[23-Mar-2012 18:01:04] PHP Notice: Undefined index: utf8 in /home/ttt/public_html/tttt/Sources/Subs-Post.php on line 1257
[23-Mar-2012 18:01:04] PHP Notice: Undefined index: utf8 in /home/tttt/public_html/tttt/Sources/Subs-Post.php on line 1259
[23-Mar-2012 18:01:04] PHP Notice: Undefined index: server in /home/tttt/public_html/tttt/Sources/Subs-Post.php on line 1279
[23-Mar-2012 18:01:04] PHP Warning: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /home/xxxx/public_html/xxx/Sources/Subs-Post.php on line 1279
[24-Mar-2012 18:47:48] PHP Warning: mysql_real_escape_string() expects parameter 2 to be resource, boolean given in /home/xxxx/public_html/xxxx/Sources/Subs-Db-mysql.php on line 132
--- End code ---
There was also an undefined $txt and language error for the subs-post.php file where I just to test...replaced the $txt with $text and thus far the error seems to be gone again....but who knows for how long.
Therefore I have removed the solved part of this thread....and it seems geared to being on a shared server but i am on a VPS for our sites and only one forum gets this pile of errors:
--- Code: ---PHP Warning: mysql_real_escape_string() expects parameter 2 to be resource, boolean given in /home/xxxx/public_html/xxxxx/Sources/Subs-Db-mysql.php on line 132
--- End code ---
K@:
I have a hunch about that last error...
Does your host still use v4 of PHP?
DarkAngel612:
--- Quote from: K@ on March 30, 2012, 05:13:29 AM ---I have a hunch about that last error...
Does your host still use v4 of PHP?
--- End quote ---
Nope
PHP version5.2.17MySQL version5.0.95-community
K@:
In your copy of the file, is line 132 this?
--- Code: --- return sprintf('\'%1$s\'', mysql_real_escape_string($replacement, $connection));
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version