Shortcut add feature borked? (fatal error)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
ChristopherW
New Member
New Member
Posts: 3
Joined: Fri Mar 06, 2009 7:32 pm

Shortcut add feature borked? (fatal error)

Post by ChristopherW »

Hello :) Wondering if anybody's come across this problem - and any possible solution they'd be willing to proffer...

When attempting to add a shorcut via the pop-out menu, if I click "add shortcut" I just see this:
Fatal error: Call to a member function on a non-object in /home/users/uks63464/html/byms.co.uk/admin/moduleinterface.php on line 120
However, a blank shortcut is inserted underneath the "Add Shortcut" link and the "Manage Shortcuts" link in the menu... Clicking on Add Shortcut just inserts another blank shortcut when the page loads (again, with the error message).

Is this permissions-related, or is something else afoot? Curiously, if I go into the Shortcut Manager page and manually edit the newly-created blank shortcuts, they work perfectly. Line 120 in moduleinterface.php is this:

Code: Select all

echo $themeObject->ShowHeader($gCms->modules[$module]['object']->GetFriendlyName(), '', '', 'both').'</div>';

Is this a bug which has been fixed in a more recent revision? This install is a few months old, but I'm loathe to rip and replace with a more recent build until it's confirmed that it's just a problem in the code which has been solved (and this week I'm far too busy to go about backing up then upgrading a site which is currently working perfectly... If it ain't broke and all that!)


It's not a terminal problem, as the feature works on the whole and it only takes one extra step to modify the shortcut. Just wondering if anybody else had come across this before, and if so what the fix is if there is one. Cheers! :)
Last edited by ChristopherW on Fri Mar 06, 2009 7:40 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Shortcut add feature borked? (fatal error)

Post by RonnyK »

Christopher,

I dont recall this issue.... But many fixes have been solved in later versions, and current stable is 1.5.3.

So recommendation is to upgrade, test again, and report if it is still broken.

I tested on latest stable, and had no issue....

Ronny
User avatar
ChristopherW
New Member
New Member
Posts: 3
Joined: Fri Mar 06, 2009 7:32 pm

Re: Shortcut add feature borked? (fatal error)

Post by ChristopherW »

Indeed, I suspected that it may be because of the old version (1.2.4!) Am I going to have content import issues upgrading over such a large point release gap? I'll be making a site backup anyway just in case, but how have other things (like theme support) carried over into the 1.5.x releases?)

I foresee another few hours late at night upgrading another site... :(
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Shortcut add feature borked? (fatal error)

Post by RonnyK »

Xhristopher,

I dont see any issues in the upgrade process... Make sure to backup files/db before doing so...

Ronny
User avatar
ChristopherW
New Member
New Member
Posts: 3
Joined: Fri Mar 06, 2009 7:32 pm

Re: Shortcut add feature borked? (fatal error)

Post by ChristopherW »

Of course :) Many thanks for your help.
Post Reply

Return to “CMSMS Core”