The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
4.2.3 Usercp Illegal string warning
Hello,
Does anybody knows what causes the follow PHP Warnings in UserCP with 4.2.3? Till 4.2.2 everything was working fine. PHP Code:
PHP Code:
|
#2
|
|||
|
|||
It looks like that's in a template. It's using a string where an array is expected. I haven't seen anyone else mention that happening after upgrading to 4.2.3.
|
#3
|
||||
|
||||
Quote:
A final note. All mods were working fine before upgrading. And the errors are only in usercp pages. I did a test by moving the code of one such page to a non usercp page and it works fine. |
#4
|
|||
|
|||
It looks like the problem is with the variable $navclass, in case that helps.
|
#5
|
||||
|
||||
Quote:
PHP Code:
|
#6
|
|||
|
|||
Well, $navclass seems to be an array of CSS class names to be used for the different parts of the UserCP. It's set by calling the function construct_usercp_nav(), which is called before the USERCP template is used. But I don't see anything in the code you posted that has to do with that, and I don't know why 4.2.3 would make a difference.
|
#7
|
||||
|
||||
Quote:
PHP Code:
|
#8
|
|||
|
|||
$includecss is the array of css files to include. $navclass is an array of class names.
Anyway, you're calling construct_usercp_nav(), if do is 'addeditphoto', so that should be OK. Is that the entire script? If not, then look for a condition where $shell_template == 1 but you have not called construct_usercp_nav(). Otherwise, maybe a plugin is changing $navclass? Could it be the reason you don't see those messages in 4.2.2 is because error messages are turned off? |
#9
|
||||
|
||||
Even if I can't test it right now seems that we're going closer to the bug:
Quote:
Quote:
Here is the only difference. The do=addedit and not addeditphoto. But works with 4.2.2 as is. |
#10
|
|||
|
|||
Quote:
When you can test, you could put in code to print out the value of $navclass at different places, and I'm sure you'll be able to figure it out. |
2 благодарности(ей) от: | ||
Lynne, TheAdminMarket |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|