Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2009, 02:20 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Forum Down :(

ok, I'm asking this question here, because I can't seem to get an answer on the mod. I installed the "VBOpitimise" mod on my site, because it sounded promising, and it was getting an over-abundant amount of ratings for MOTM. Right after I uploaded the plugin I got this error "Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/m/d/e/mdelcour201/html/forums/includes/class_activecache.php on line 20"


No one can seem to come up with an answer, excpet to say "add define('DISABLE_HOOKS', true); to the begining of your config.php file" well, that isn't working, and I can't do anything on my site right now, it seems to be down completely. tools.php isn't working either. Can anyone come up with any other help?

www.lacledeforum.com/forums

Would love to just have this mod uninstalled so that I can have my forum back. But, as of right now, I can't get into anything. I just keep getting that same error.

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

sorry I just realized I posted this in the wrong place. So if a moderator wants to move it, please do.

~MD
Reply With Quote
  #2  
Old 01-03-2009, 02:27 PM
CodingMonkey CodingMonkey is offline
 
Join Date: Sep 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems that it's a problem with /includes/class_activecache.php which is NOT a vBulletin default file.

Firstly, I suggest you remove the non-default files first. Listed:
  • /admincp
    • vboptimise.php
  • /images
    • /misc
      • vboptimise_bad.png
      • vboptimise_good.png
  • /includes
    • /xml
      • cpnav_vboptimise.xml
    • class_activecache.php
    • class_activecache_methods.php
    • class_activecache_vbadvanced.php
    • module_blank.txt
  • /vboptimise
    • index.htm
Try this and let me know if this resolves your problem
Reply With Quote
  #3  
Old 01-03-2009, 02:29 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tried this yesterday, and it just created more problems. It tried to hunt for those files, and when it could not find them, it locked me out. So, I had to upload it again just to get back to where I was.

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

I really wish there was a way to unistall a mod (in case this happens) without having to use your admincp.
Reply With Quote
  #4  
Old 01-03-2009, 02:34 PM
CodingMonkey CodingMonkey is offline
 
Join Date: Sep 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, well this will be interesting then.

Either you can use the attached php file or you can apply the change yourself.

Within /includes/class_activecache.php, try replacing:
Code:
	static $class = __CLASS__;
	static $instance;
with:
Code:
	var $class = __CLASS__;
	var $instance;

The only way to uninstall is either going through the database and datastore (I think -- have never tried this way) or using DISABLE_HOOKS. I don't know why DISABLE_HOOKS won't work but, I'll try to fix it for your situation. There's also the fact everyone says to backup before you install a mod. =/
Attached Files
File Type: php class_activecache.php (17.0 KB, 20 views)
Reply With Quote
  #5  
Old 01-03-2009, 02:36 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will give it a try. Luckily I do have my forum backedup.
Reply With Quote
  #6  
Old 01-03-2009, 02:37 PM
CodingMonkey CodingMonkey is offline
 
Join Date: Sep 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually... what FTP program are you using? Are you sure it's overwriting your configuration file when you're trying to reupload it with the define('DISABLE_HOOKS', true); at the top of your configuration?

Edit: Ah, that's good.
Reply With Quote
  #7  
Old 01-03-2009, 02:40 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, now getting this error:

Parse error: parse error, unexpected ')', expecting '(' in /home/content/m/d/e/mdelcour201/html/forums/includes/class_activecache.php on line 35

line 35 is this:


return (self::$instance) ? self::$instance : (self::$instance =& new self::$class());

--------------- Added 03 Jan 2009 at 08:46 ---------------

Quote:
Originally Posted by CodingMonkey View Post
Actually... what FTP program are you using? Are you sure it's overwriting your configuration file when you're trying to reupload it with the define('DISABLE_HOOKS', true); at the top of your configuration?

Edit: Ah, that's good.
I am using my "GoDaddy FTP" Maybe I will try deleting the config.php file completely and then installing it again. I am placing the code here:

<?php
define('DISABLE_HOOKS', true);
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.7.4 Patch Level 1 - Licence Number xxxxxx
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ?2000-2008 Jelsoft Enterprises Ltd. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+

--------------- Added 03 Jan 2009 at 08:53 ---------------

ok....I completely deleted the file from my server, then re-uploaded it, with the define('DISABLE_HOOKS', true); code in it, and am still getting the same error.

--------------- Added 03 Jan 2009 at 10:21 ---------------

problem fixed.......whew!!!
Reply With Quote
  #8  
Old 01-15-2009, 10:01 PM
metrika metrika is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have The same plroblem , What did you do? can you tell Step By Step?
Thanks
Reply With Quote
  #9  
Old 01-15-2009, 10:09 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in your config php add this

define('DISABLE_HOOKS', true);

this fixxed it for me than uninstall the mod ]


it should look like this


ini_set('display_errors', true);
define('DISABLE_HOOKS', 1); <--------add it here


// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use xxxx if you are using PHP 5 and MySQL 4.1+
// for slave options just append _slave to your preferred database type.

That will disable all mods, and then you can delete the mod that is causing the problem. For me the problem was the VB Optimise Mod.

for more info on that:
https://vborg.vbsupport.ru/showthrea...199207&page=44
Reply With Quote
  #10  
Old 01-15-2009, 10:15 PM
metrika metrika is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed, really thanks! I fixed following what you said and accesing to my site by mysite.com/index.php
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04599 seconds
  • Memory Usage 2,275KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete