vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Error message when editing posts (https://vborg.vbsupport.ru/showthread.php?t=310047)

Mariner1 03-30-2014 01:28 PM

Error message when editing posts
 
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

Quote:

Originally Posted by Mariner1 (Post 2490443)
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

PHP Code:

                            $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:

PHP Code:

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 [DATE]1396207543[/DATE] at [TIME]1396207543[/TIME] ---------------

--------------- Added [DATE]1396207630[/DATE] at [TIME]1396207630[/TIME] ---------------

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?


All times are GMT. The time now is 01:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00948 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete