Status
Not open for further replies.

racersimage

Customer
This application is working fine on the frontend but on the admin end it is majorly messed up for some reason.

When I try to Rebuild Cache I get this
Fatal error: Call to a member function build_cache() on a non-object in /home/nascartr/public_html/community/dbtech/vbactivity/includes/actions/admin/repaircache.php on line 23
You can see here that I have many achievements and awards http://diecastcrazy.com/community/vbactivity.php?do=achievements but in my admin while trying to manage achievements for example I get

Warning: Invalid argument supplied for foreach() in [path]/dbtech/vbactivity/includes/actions/admin/achievement.php on line 17

You currently have no Achievements added. Why don't you add some?

Awards
You have no Awards defined. Why don't you add some?

Trophies

Warning: Invalid argument supplied for foreach() in [path]/dbtech/vbactivity_pro/includes/actions/admin/trophy.php on line 34

Warning: Invalid argument supplied for foreach() in [path]/dbtech/vbactivity_pro/includes/actions/admin/trophy.php on line 80

Zero Trophies.

I had an award request and when I tried to approve it I got this

Fatal error: Call to a member function add_reward() on a non-object in /home/nascartr/public_html/community/dbtech/vbactivity/includes/actions/admin/domedalrequests.php on line 59

I got the notification and as the main admin I get this message when clicking on the notification.

Sorry, you don't have permission to access the administrative controls on this page.

If you need to access this page, ask your lead administrator to enable your permissions for this page using the Administrator Permissions section of the control panel.

On the frontend everything is ok, but my admin panel is empty and error filled.

I restarted my MySQL server last night after changing the my.cnf file but that is all I have done.

HELP!!!
 
Last edited:
Any reason why this won't work with vBOptimise? I am using Filecache and flush the cache but I still get all of those errors. I have to disable the cache datastore option for this to work properly.
 
Ok, I have narrowed it down further.

I read this note for datastore cache
Note: This feature doesn't cache any data, it auto-corrects Datastore Items to use your preferred Datastore Cache method (defined within config.php) instead of your database.

So I commented out this line in my config.php to test

//$config['Datastore']['class'] = 'vB_Datastore_Filecache';

Enabled datastore cache and everything works fine again.

My question would be now that I have commented out the config datastore option, is vBOptimise still working correctly?
 
I'd like to come up with a solution so please move it if need be. It's definitely a problem with the datastore cache.

I'm just another customer like yourself. =) Most of the DBT guys are somewhere around GMT timezone so... probably sleeping. Maybe one will appear but more than likely you'll have to wait until tomorrow for a reply.
 
I'll be testing the filecache functionality today Racersimage, there shouldn't be any confliction as vB Optimise stores the files elsewhere while vB stores its own within a sub directory within includes/. If I understand you right though either disabling vBO Filecache or vB Filecache stops the errors, running both together produces them? :)
 
So far this seems to be with the datastore caching vBO muscles in, sometimes data is either serialized or unserialized and appears to be where it's failing when using Filecache mode. For now I recommend disabling the vB Optimise datastore cache option, but you can still use everything else and vbulletin datastore caching, that is until I resolve the issue anyway :)
 
Would you say that I'd experience better results having the vBulletin datastore enabled and vBOptimise datastore cache disabled over not having the vBulletin datastore enabled and having the vBOptimise datastore cache enabled?
 
vBulletin datastore will handle all default datastore items so you should keep that on, all vB Optimise does is move any custom datastore items used by other modifications to use the default vBulletin datastore you've assigned instead of the database, if you flick the setting off in vB Optimise you shouldn't have any errors :)
 
After looking further it seems on vB3 and vB4 their datastore cache for Files is restricted to only cache a few specific items, pushing other items into the mix can cause problems which is why your ACP got errors. I've resolved this by stopping the errors but the Datastore option turned on will do nothing if you're vBulletin config has datastore assigned to Filecache.

In a future version I may look into providing an alternate datastore class for vB3/4 which uses file but isn't restricted like the current one. If you want to patch your existing installation re-download the package and uploadf ./vboptimise/cachers/cacher_datastore.php, all it will do is stop errors if you accidently turn the datastore cache option on, it's patched for v2.3 and the v3.0 beta (for those that have it).

Let me know if you have any further questions or problems :)
 
Status
Not open for further replies.

Similar threads

Legacy vB Optimise

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,980
Customer rating
0.00 star(s) 0 ratings
Back
Top