News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Fatal error when enabling caching

Started by zushiba, October 23, 2012, 11:41:04 AM

Previous topic - Next topic

zushiba

I've got APC installed and can verify that it is operating properly. So I go to enable caching as it's currently disabled on my forum and I get the following error

Fatal error: Call to undefined function subsFunc2() in /home/user/public_html/forum/Sources/Subs.php on line 4363

If I press back and disable the caching it fixes this.

Kindred

I do not believe that function is part of the standard SMF installation (It does not appear to exist in my clean copy of subs.php)



So... SMF version? Mods installed?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

zushiba


SMF 2.0.2
SimplePortal   2.3.5
Bookmarks   2.5
Menu Editor Lite   1.0.5
SMFShop   3.2
Custom BBCode   2.03
Aeva ~ Auto-Embed Video & Audio   7.2
Activity in Profile   1.1
SMF Gallery Lite   3.1.4
Activity Bar   1.1
Drafts   1.1.3
Tagging System   2.4.2
Remove Reply Prefix   1.0
Member Color Link   3.1
SubAccounts Mod   1.0.1

Kindred

possibly related to the subaccounts mod... (my first guess)

but you may have to do a search of each of the mods to find out which one added the call to subsFunc2
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

zushiba

It looks like Menu Editor Lite

//-- Labradoodle-360; Menu Editor Lite
if (empty($context['uninstalling']) || !empty($_REQUEST['package']) && $_REQUEST['package'] != 'Menu-Editor-Lite-1.0.5.zip')
subsFunc2($menu_buttons);
// End Labradoodle-360; Menu Editor Lite --//

Kindred

yup, it does...

which then begs the question... did that mod get fully installed?

I suggest that you either uninstall the mod, or manually check each of the edits to confirm that it was fully installed.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

zushiba

It's fully installed though there is one oddity.

Where it replaces in index.php

elseif (empty($_REQUEST['action'])


with

elseif (empty($_REQUEST['action']) && empty($_REQUEST['ajax_request'])


I have

elseif (empty($_REQUEST['action']) && empty($_REQUEST['ajax_request']) && empty($_REQUEST['ajax_request']))

nend

It can't be the if statement it has to be the function call, so even with that oddity it should still work, but it doesn't which means the function it is calling does not exist because there is code missing to add the function or include the file that contains the function. So in other words it is either a bug in the modification or the package didn't install correctly.

zushiba

Well so far as I can tell the modification itself is functioning correctly. It does all it's advertised to do.

nend

It may not be the code then, what are your settings for APC, maybe you have a bad byte cache or setting causing the problem.


nend

I don't know if it has to do with your 100% fragmentation level. I am no APC expert either, however in the time I have had it across all nodes I have never had that high fragmentation.

zushiba

Hmm, I increased it's available memory from 32megs to 64, I'll have to watch it and see how it goes.

Advertisement: