The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Fatal error: Cannot pass parameter 1 by reference
I'm getting this error:
Fatal error: Cannot pass parameter 1 by reference in /***file path removed***/includes/class_postbit.php(294) : eval()'d code on line 33 Line 33 in class_postbit.php is blank. the few lines around it are: Code:
* Bitfield value which determines whether a user's reputation power should be displayed with their post. */ define('POST_SHOW_REPPOWER', 2); /** * Bitfield value which determined whether a user sees another user' infractions */ define('POST_SHOW_INFRACTION', 4); I added a plugin to postbit_display_compelete to try out some code that isn't working but not sure why... the offending lines are: Code:
include('functions_forumlist.php'); $sico = fetch_forum_lightbulb(2, array(), 2); |
#2
|
||||
|
||||
Joe,
This line... Code:
includes/class_postbit.php(294) : eval()'d code on line 33 File: class_postbit.php Line: 294 of class_postbit.php That is most likely a plugin and then you need to look at line 33 of the plugin. Trick there is that sometimes there are several plugins using that hook and you don't know which line 33 is. You can look at the datastore table and find the row with the plugin stuff and look there, if needed. |
#3
|
||||
|
||||
ahh thanks... good to know.
|
#4
|
||||
|
||||
Joe, if you google Max beauty, download it and then when you view the page of your forum that causes the error, right click, view source and max beauty will open with the source code for everything used to render that page and line numbers, also before you do this turn on template headers/titles in your admincp so you can see which piece of code is being called from which template
Hope that helps. |
#5
|
||||
|
||||
I'll take a look at max beauty thanks...
The reason for this particular error was that I hard coded the forum id's in the function call... even though the function takes integers it requires they be in variables... once I set them to a couple of variable names the error went away. :up: |
#6
|
||||
|
||||
|
#7
|
||||
|
||||
thanks... looks interesting for quick checks... I already have WinMerge which does basically the same thing.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|