FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Bug report




Post new topic Reply to topic  [ 4 posts ] 
 
Author Message
 Post subject: Error menu management: There are no languages. Please insert
 Post Posted: Sun Jan 03, 2010 3:59 pm 
Offline

Joined: Mon Dec 28, 2009 11:09 pm
Posts: 6
When logging into my impresspages as admin and clicking on menu management, I got the error:

"There are no languages. Please insert at least one language" lin 49 of ip_cms/modules/standard/menu_management/edit_menu_tree.php

I'm using php 5.3.1 with IP 1.0.2 beta. I've isolated this to be caused by improper construct of EditMenuTree. In this construct it will initialize the languages which the function manageMenu will need. However it sometimes does not construct properly.

I found out that the proper way of constructions in PHP5 are by using __construct(). I've renamed function EditMenuTree() into __construct() and now it properly initiates the class.


Top 
 Profile  
 
 Post subject: Re: Error menu management: There are no languages. Please insert
 Post Posted: Sun Jan 03, 2010 4:11 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
Does it happened on fresh installation? What should I do to get the same error message?


Top 
 Profile  
 
 Post subject: Re: Error menu management: There are no languages. Please insert
 Post Posted: Sun Jan 03, 2010 7:12 pm 
Offline

Joined: Mon Dec 28, 2009 11:09 pm
Posts: 6
It was a total new installation on php 5.3.1 with the IP 1.0.2 beta, no extra's done at all. Except that I did do the .htaccess trick which I posted earlier 'install in subfolder'. viewtopic.php?f=7&t=68&p=254#p254

I thought I did first check if it was related to this and as far as I remember it didn't. So maybe it's related to php 5.3.1? It looks like it only initiaties the first time a session is started and not after. But I'm really not sure as it felt intermittend!

Let me know if you want me to test something


Top 
 Profile  
 
 Post subject: Re: Error menu management: There are no languages. Please insert
 Post Posted: Sun Jan 03, 2010 7:42 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
If somebody else had the same problem, please note here.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 4 posts ] 

Board index » Development » Bug report


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron