kennethpoulsen.dk

Menu

Log In

phpWS Resources

Various phpWS designs

Nice Guys

Coding

Open Source CMS

Misc

Search Articles




Spooky empty 'object' in Control Panel
I'm seeing a couple of odd text 'object' things in my Control Panel.
This is now solved - have a look at the solution, sharpen your SQL-knife and be prepared to do some nitty-gritty database manipulation...

How do I get rid of these?

I have a feeling, that this might have something to do with an earlier attempt to get rid of multiple instances of the Mailing Lists Module.

This is what I see in my Control Panel under the My settings and the Administration tab:


Control Panel - My settings
Control Panel - My settings

 Control Panel - Administration
Control Panel - Administration

They doesn't do anything good for me, they are not clickable, so it would sure be nice to get rid of them.

If you - as a bonus - could supply me with an explanation of what this actually is about, I will appreciate it very much.

Thank you for your time.

Kenneth

(Follow this at the SourceForge phpWS Help Forum)

Good tips from dr_kludge (Greg Morgan)

am just giving some observations here so I don't know how close I am. After looking at the files in /mod/controlpanel/class there is Tab.php and a Link.php class file. They use the mod_controlpanel_tab mod_controlpanel_link tables respectfully. I believe the ControlPanel.php builds each tab as it finds a row in the mod_controlpanel_tab table. As each tab is built from mod_controlpanel_tab table, rows from mod_controlpanel_link table are read.

This table holds all the items that you see on each tab. Now for some reason as each item is being displayed it finds two rows that are "damaged" in that only the descriptive text can be displayed. Hence, the image and link are not available for you to click on and do something. It looks like from the code, an error would be returned and nothing would be painted. However, phpWS has the presence of mind to display the word "Object" for you. I couldn't find this in any of the files in the controlpanel directory. There is the chance that other parts of the system come into play here and that's where the word Object magically appears.

You could try this in the mysql command line tool to see what is in the table:
select id, module, url, description, admin, image from mod_controlpanel_link order by module;
Post the results and see if others can give you a clue as to what is going on.

I found the (French) Connection between the tables, but...

Thanks Doc! for pointing me in the right direction.

I have been fiddling with it, and have now localized where it seems to go wrong.
In mod_controlpanel_tab i see the error in 2 rows - 1 and 4 - which corresponds to the My settings and the Administration tab.

In the link field, I have found the entries as a pair of values, where there isn't any corresponding entry with that ID in the mod_control_panel_link.

Table: mod_controlpanel_tab
Table: mod_controlpanel_tab

From here on I thought it would be pretty easy, just removing the 'blind' pairs from the record, but that didn't work. Instead I was getting the error:
Warning: Invalid argument supplied for foreach() in /webhome/web1.k00.opasia.dk/htdocs/mod/controlpanel/class/Tab.php on line 91, and an empty Tab in the Control Panel.

Line 91 in Tab.php is in the middle of the function getTab() , and I'm sure that this is where the tabs are being set up, but I must admit that I'm not that fluent enough in PHP (yet) to actually see what this is all about.

I manually tried to delete the 2 wrong pairs in row 1 and 4, getting the error.
I also tried to substitute one of the values in the wrong pairs getting a double entry in the Tab as expected - just to verify that I was hosing the right firespot...;-)

Any ideas on this?

Latest news and possible solution?

YES! This worked fine for me also...

Look here...
https://sourceforge.net/forum/message.php?msg_id=2336827
Solution to this problem???

Article Manager module by by George! Software.

Comments
The comments are owned by the poster. We are not responsible for its content.
respond this topic
Posted on: 2010-07-12 12:25:26   By: Nixon29Colleen
 
I had got a desire to start my business, but I did not have got enough of money to do this. Thank heaven my mate recommended to use the mortgage loans. Hence I received the term loan and made real my dream.


bnsxc
Posted on: 2009-03-13 02:42:55   By: wanasite
 
メル友出会いサイト無料メル友探しをして人妻出会いサイトを楽しもう♪



Valid XHTML 1.0!