PortalParts.com Site

 Forum Index > Geeklog > glMenu New Topic Post Reply
 Installed glmenu error message
 |  Printable Version
cordiste
 December 16 2009 03:43 AM  
Forum Senior
Senior

Status: offline

Registered: 11/03/05
Posts: 23

Hello,

To change the visibility declaration of a function, open the plugins/glmenu/glmenu.class.php file and remove the public declaration on line 170

public function initMenuItems($pid=0) {
to
function initMenuItems($pid=0) {

public is the visibility declaration.

Do the same for all functions in all the files glmenu.class.php, style/css.php, style/procss.php and style/milonic.php and everything might work fine.

::Ben


 
Profile Email PM
Quote
sstewart
 December 21 2009 00:17 AM  
Forum Newbie
Newbie

Status: offline

Registered: 12/16/09
Posts: 4

Hi cordiste,

I changed the public functions as you mentioned and put the lib-portalparts.php into the system folder (there was an error for a missing file).

I am now getting this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /data/in/l/liwsa/www/xliwsapriv/plugins/glmenu/style/css.php on line 81

Any ideas?


 
Profile Email PM
Quote
cordiste
 December 21 2009 03:29 AM  
Forum Senior
Senior

Status: offline

Registered: 11/03/05
Posts: 23

Did you


Do the same for all functions in all the files glmenu.class.php, style/css.php, style/procss.php and style/milonic.ph.
?

::Ben


 
Profile Email PM
Quote
sstewart
 December 21 2009 11:00 AM  
Forum Newbie
Newbie

Status: offline

Registered: 12/16/09
Posts: 4

Hi,

I did change all the public functions as noted in your last post. I have zipped the files here:

http://islandnet.com/~liwsa/temp/glmenu.class.php.zip

Any other thoughts?

ss


 
Profile Email PM
Quote
cordiste
 December 21 2009 11:46 AM  
Forum Senior
Senior

Status: offline

Registered: 11/03/05
Posts: 23

private function _renderHeaderMenu()

private is also a visibility declaration. You can read more about visibility declaration here.

::Ben


 
Profile Email PM
Quote
Content generated in: 0.15 seconds
New Topic Post Reply



 All times are CDT. The time is now 05:14 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content