vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Upgrade Error... please help? (https://vborg.vbsupport.ru/showthread.php?t=205304)

Ohiosweetheart 02-14-2009 02:43 AM

Upgrade Error... please help?
 
I just upgraded a forum from 3.5.4 to 3.8.1. The upgrade ran smoothly, but when prompted to login to the acp afterwards, this blank page came up with the following error -

Quote:

Unable to add cookies, header already sent.
File: /home/hairsty/public_html/forum/global.php(833) : eval()'d code
Line: 115
and this message across the top of the page -
Quote:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/hairsty/public_html/forum/global.php(833) : eval()'d code on line 115
any ideas what this could be??

Thanks in advance.

TigerC10 02-14-2009 03:07 AM

I suspect that you did not upload all of the files properly. Usually this only happens if you run the upgrade script without uploading all of the .php files correctly.

Try re-uploading all of the .php files again.

Ohiosweetheart 02-14-2009 03:12 AM

Thanks Tiger, I'm in the middle of doing that right now. I hope it works!

--------------- Added [DATE]1234588998[/DATE] at [TIME]1234588998[/TIME] ---------------

No that didn't work. I re-uploaded everything, and ran the upgrade script again.
I still have the same error messages.

TigerC10 02-14-2009 03:33 AM

Once the upgrade script runs, you don't need to run it again.

According to my global.php file, this is line 115...
Code:

else
{
        $vbulletin->userinfo['lastvisitdate'] = -1;
}

Open your global.php file and scroll down to line 115. Make sure that this is the line you've got.

If you can't add the cookie data, you might have changed your forum URL. Try uploading tools.php from the do_not_upload folder. Run it, and try updating the cookie info just in case.

Lynne 02-14-2009 03:35 AM

I'm guessing there is a problem with your header template since this is line 833 in global.php:

PHP Code:

eval('$header = "' fetch_template('header') . '";'); 

Or, perhaps a plugin that is eval in that template? Have you tried disabling your plugins?

TigerC10 02-14-2009 03:40 AM

Good call, Lynne. I like that idea more than mine now. Unfortunatly, he can't get into the AdminCP to resolve the issue... I wonder how to solve this.

Ohiosweetheart 02-14-2009 03:49 AM

Lynne I have tried to disable the plugins by typing
define('DISABLE_HOOKS', true); in the config file under <?php
but that's not working either

Lynne 02-14-2009 03:55 AM

"He" is a "she". :D

The plugins can be disabled through the config.php file.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 

edit: I didn't see that you posted when I was posting... did you try also removing any files that are not standard vb files that may be getting 'called' in one of your templates?

TigerC10 02-14-2009 04:00 AM

Quote:

Originally Posted by Lynne (Post 1743496)
"He" is a "she". :D

My bad! I meant no offense! >.< I just didn't check on the profile.

The only way I can see fixing this error is to get the default header template and update it manually in the database.

Here's the default code, as for manually updating it in the database... There are a multitude of ways of doing that.
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


Ohiosweetheart 02-14-2009 04:00 AM

yikes, I don't know how to figure out which one that would be :(

btw thanks so much for your ongoing help here Lynne.

--------------- Added [DATE]1234591445[/DATE] at [TIME]1234591445[/TIME] ---------------

and no offense taken Tiger!

--------------- Added [DATE]1234591485[/DATE] at [TIME]1234591485[/TIME] ---------------

omg I SO don't want to mess with the database if I don't have to.


All times are GMT. The time now is 03:26 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
  • Page Generation 0.01036 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete