The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Add .PHP File as Plug-in - Admin Panel Will NOT Start
I do hope this is the right forum and apologize if not. I thought this might be one of those things that takes some programming knowledge, as well as an understanding of the forum itself. We have VB 4.2
One of our guys wrote a .PHP file to rotate banners, then he tried to add it to the Admin Panel as a Plug-in. Now when you try to log-on to the Admin Panel you get the following error message. save from other path!Unable to add cookies, header already sent. File: /home/roadtr5/public_html/forum/global.php(29) : eval()'d code Line: 16 Does anyone understand this enough to figure out what happened from my description? The forum is still up and you can look at things, but you cannot edit a thread and the sign-on page of the Admin Panel comes up to log-on, but when you do, you get a blank page with the above error. Since the Admin Panel is hosed, you cannot edit the forum either, so we are basically down. Any help would be greatly appreciated. I can only guess that one of the templates used for plugins was damaged, but even if I knew which one, I could not get to it by way of the Admin panel. |
#2
|
|||
|
|||
If you have access to your config file you could try this below
Edit config.php and add this directly below <?php: Code: define('DISABLE_HOOKS', true); then press save Then go to your plugins and delete the one you are talking about then go back to your config.php remove define('DISABLE_HOOKS', true); press save |
#3
|
|||
|
|||
Do what michelle81 posted above to get back in your forum. As for the error, the problem is that the plugin is creating output (in this case, the message 'save from other path!'). The way vbulletin code works, no output is produced until just before the script ends, so a plugin cannot echo or print without causing that warning.
|
#4
|
||||
|
||||
Michelle nailed it, here's a more detailed bit of info for anyone interested: https://vborg.vbsupport.ru/showthread.php?t=259619
|
Благодарность от: | ||
kh99 |
#5
|
|||
|
|||
You guys were right on, "all the way".
I disabled the addon. To kh99 's point, under Plugin PHP Code" he had the following: $topImage = 'forum/top-image-ads.php'; if(file_exists($topImage)) { echo 'not exits'; } else { echo 'save from other path!'; } Is this where the echo you were talking about, or would it be in "top-image-ads.php"? Also is there an article that might advise on the proper way to write an add-on? Again. Many Thanks Frank :up: |
#6
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|