Editing User Profile Panel

thomasmuirhead - January 23, 2008 - 10:05
Project:Advanced Profile Kit
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I don't seem to be able to Edit the User Profile Panel Page...is this meant to be uneditable? If so, is there a way round it? I'd like to add the rounded corners style to the panel page, and maybe pick and choose the views differently.

#1

panatlantica - January 23, 2008 - 14:00
Component:User interface» Code
Category:support request» bug report
Priority:normal» critical

I can confirm, since the latest update something seems to have gone wrong. Only the User Profile panel seems to have this error. On admin/panels/panel-page you can click "Edit" or "Export" of the User Profile panel but nothing will happen. The page will reload with the new URL but stay on the overview page. "Deactivation" and "Reactivation" on that panel do work. All other panels behave normally.

Seems like the edit function has gone missing between lines 152 and 154 - I can't really find any edit functionality in the newer code, too...

The change resulted from a code cleanup between rev 1.3 and 1.4 by michellec (see http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/advanced_pr... )

#2

Michelle - January 23, 2008 - 14:19

I've run into this before and merlinofchaos figured it out. You need to clear the menu cache.

Michelle

#3

thomasmuirhead - January 23, 2008 - 15:49

Hi Michelle,

thanks for that, I'm relieved it's something straightforward.

I've had a look around, and found no simple documentation as to how to clear the menu cache.

what's the simplest way?

thanks

thomas

#4

Michelle - January 23, 2008 - 15:55

Devel module or empty the cache_menu table.

Michelle

#5

thomasmuirhead - January 23, 2008 - 16:02

thank you so much

thomas

#6

panatlantica - January 23, 2008 - 17:37

Not yet there unfortunately, clearing the cache_menu table does help somewhat, but only when backgrading from rev. 1.4 to 1.3... The edit function in rev. 1.3 may have moved to another place (which I cannot find, though), but it seems definitively missing in rev 1.4 of the module.

With rev. 1.3 the tabs on the profile page have a "settings" button at the end of the tabs, rev. 1.4 the profile page misses this link in the tabs. The "edit" link is also broken in the profile page using the 1.4 revision, showing a page that rather looks like the node/add page.

Back in rev. 1.3 the "edit" link in the profile behaves completely fine.

Looking from admin/panels/panel-page, both 1.3 and 1.4 revision show the userprofile panel. However, even with clearing the cache_menu table (yeah, Devel Module IS a developer's best friend!!!) the edit link here remains broken. Grading down to rev. 1.3 and clearing the cache_menu table, it is back to working again.

So inside your cleanup of code between 1.3 and 1.4 something definitively must have gone missing alas...

Michelle: your module is one of those tiny ones that change Drupal tremendously and help Drupal become really really big, you might not be aware of this :-)))) KEEP THE GOOD WORK UP!!!

#7

Prodigy - January 23, 2008 - 20:26

Can also confirm that even clearing Cache Menu does not fix this. I am using the latest Bio module, Latest Panels module, and of course advanced profile.

#8

Michelle - January 23, 2008 - 20:33

Edting the panel is part of panels, not advanced profile. There's obviously something in my code that panels is choking on but it's hard to say what since I can't reproduce this problem. I'll talk to merlin and see if we can figure anything out but blind troubleshooting is always hard.

Michelle

#9

Prodigy - January 23, 2008 - 22:46

Okay, and just to be clear it's only the "panel-page" where "edit" will not work. Anything I can do, please don't hesitate.

#10

Michelle - January 24, 2008 - 03:57

Are you _just_ downgrading the .module file to get it work, or the entire project?

Michelle

#11

Michelle - January 24, 2008 - 04:15

Actually, merlin found the problem. I broke it when I tried to fix Walt's issue. Oopsie. Will get in a fix tonight and it should hopefully work for you in the tarball in 8 hours.

Michelle

#12

thomasmuirhead - January 24, 2008 - 14:05
Status:active» fixed

I can confirm it's working fine in the latest version.

Thank you Michelle, and thank you Merlin

#13

Michelle - January 24, 2008 - 14:43

Great! Thanks for letting us know and sorry about the mixup. I totally forgot he said not to call the panels .inc from hook_menu.

Michelle

#14

panatlantica - January 25, 2008 - 15:51

Yeppo! ;-) Those "missing content types" were fixed also. - It was the "node from user cck group" thing that did not work out in the last revision, even though all dependant modules were in place... maybe we might consider setting up some dependencies in the install file?

Great work Michelle! As I said: your excellent helper module bridges not only between profiles and panels, it opens up a way to fast and easily develop even the most complex user profile systems you can imagine! I love it!!!

Steve.

#15

Michelle - January 26, 2008 - 03:11

Glad you got it working. The only real dependency is panels 2 because it's meant to work with bio, nodeprofile, or even the core profile module. Part of the problem is I had to write panels integration code for other modules to make this work and I'm waiting on my patches to be committed.

I keep trying to make it easier and easier to make complex user profiles. It's come a long way from the first version of my tutorial almost a year ago. :)

Michelle

#16

Anonymous (not verified) - February 9, 2008 - 03:11
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.