![]() |
Variable Declared in a Plugin Not Initialized in Error Pages
Hello.
I have created a plugin for global_start hook with execution order of 5. PHP Code:
The problem is that in error pages, the variable is not set(returns ""). Though it works well in other pages like home page etc. Any help is kindly appreciated. |
I have the same problem,
Please help... |
You don't need line 1 or line 3 in your code. Although I don't if that will fix your problem.
You may need to use the $GLOBALS array to access the variable. Try using this code where you would normally just use the variable. PHP Code:
|
It worked! Thank you.
|
All times are GMT. The time now is 01:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|