PDA

View Full Version : Error message when editing posts


Mariner1
03-30-2014, 01:28 PM
Ive installed 4.2.2 a few days ago.
When i edit a post i get this error

Warning: Only variables should be passed by reference in ..../editpost.php on line 323

The post does edit but id like to know what the warning is and how to fix it pls

ozzy47
03-30-2014, 03:09 PM
Have you tried on a unmodified default style?
Have you tried with all mods disabled?

RichieBoy67
03-30-2014, 05:09 PM
Ive installed 4.2.2 a few days ago.
When i edit a post i get this error

Warning: Only variables should be passed by reference in ..../editpost.php on line 323

The post does edit but id like to know what the warning is and how to fix it pls

Line 323 says at least on a default 4.2.2 editpost.php file

$edit['emailupdate'] = array_pop($array = array_keys(fetch_emailchecked($threadinfo)));


Did you try disabling your plug ins to see if you still get the warning? First though I would do what Ozzy said and try the default style.

Lynne
03-30-2014, 05:11 PM
As of vBulletin 4.2.2, notices and warnings are no longer suppressed by default like in previous versions of the software. This means that on some servers, you may see warnings that you never saw before. In order to stop them from showing, please add the following line to your config.php file under the <?php line:


define('SKIP_ALL_ERRORS', true);

Mariner1
03-30-2014, 05:44 PM
yes done all that Ozzy,still got problem.Ive noticed it only happens if i click go advanced and do the edit that way

--------------- Added 1396207543 at 1396207543 ---------------

--------------- Added 1396207630 at 1396207630 ---------------

Thanks Lynne,that sorted it

ozzy47
03-30-2014, 06:32 PM
Ok cool, I figured it might a warning that was not being suppressed, but wanted to be sure. Glad it's sorted. :)

princesspepper
12-07-2014, 10:29 AM
Is this error important? I am getting it, and I wouldn't want to suppress it if it then turns into a real issue along the way...

ozzy47
12-07-2014, 10:33 AM
What is the exact error you are getting?

Lynne
12-09-2014, 04:21 PM
You posted a Warning, not an Error. What Error are you now getting?