The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Object of class vB_Template could not be converted to string
Hi. Please help me with modification of plugin. This plugin work perfectly on the default style, but on installed custom style his generate php-errores:
Code:
Object of class vB_Template could not be converted to string.... strpos() expects parameter 1 to be string, object given... I found hook and localized code what gives this errores. Its in parse_template PHP Code:
PHP Code:
Thanks for any help! |
#2
|
||||
|
||||
So, if you comment out the line regarding the postbit_legacy template, it works fine. So, compare your postbit_legacy from your custom style to the one in the default style.
|
Благодарность от: | ||
Wedframe |
#3
|
||||
|
||||
What are you trying to do? Lol
|
#4
|
|||
|
|||
Thanks Lynne! Yes they have a difference. I attached txt file with whole postbit_legacy template from custom style. May be if you look at them, you`ll can say something? Ofcause if its not so hard for you :erm:
vBNinja, its not my mod. I`m just use it. But with new style his stop working. Its mod for self moderation in threads, for user-topicstarters. In this hook, to forward, creats new buttons under postbits, for what users(edit/soft delete posts in his own threads). Sorry for my english((( |
#5
|
|||
|
|||
Where did you get the mod? You might have better luck asking the person who wrote it.
I'm thinking maybe the code in the plugin is modifying the cached template, but with the custom style, the result is a template that causes that error when eval()ed. |
#6
|
|||
|
|||
Unfortunately author of this mod, dont answear in threads for rfee / four years((((
|
#7
|
|||
|
|||
Is it from this site? Can you tell us which one it is?
|
#8
|
|||
|
|||
No. Is it not from here...
Its here: http://vbsupport.org/forum/showthread.php?t=40628 ---------- I think I can share this mode on vbulletin.org. This is nice mod, what can be very useful in some forums... But, how can we see, its have one bug... |
#9
|
||||
|
||||
I'm sorry, but we don't know the mod so we don't know what the issue is. You either need to try things yourself or find someone willing to spend the time to figure it out for you.
|
#10
|
|||
|
|||
Ok. Its saaaad((( I was hoping for help ...
In any case, I added the archive with the module, just in case someone nevertheless wants to fix it. Just remind,.. on the default style, this mod work without any problems, and you can use it on yours forums. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|