Your Content title links not working

14 replies [Last post]
zoosphere
Offline
Joined: 01/20/2010
Status: 
Answered

Bug:

Under My Account > My Content: Here is your content. The titles point to the home page of the site, rather than the actual nodes.

Leighton Whiting
Online
Joined: 06/02/2009
Zoosphere, Can you check that

Zoosphere,
Can you check that the users have permission to view their own content, and also can you try rebuilding the menus?

Sincerely,
Leighton Whiting

zoosphere
Offline
Joined: 01/20/2010
Hi Leighton, yup, authors do

Hi Leighton, yup, authors do have permission to view and edit their own content. I rebuilt permissions and menu (just going to modules admin should do this, right?), and this hasn't solved it.

-Marco

Leighton Whiting
Online
Joined: 06/02/2009
Marco, The only time I've

Marco,
The only time I've seen this problem where the menus go to the Home Page was when the menu router wasn't being fully rebuilt because of a lack of PHP Memory. Have you gotten any PHP Memory errors recently?

Sincerely,
Leighton Whiting

poindog
Offline
Joined: 05/28/2010
Greetings. I have the same

Greetings. I have the same problem. Just wondering if a solution was found?

Also what did you mean by "menu router wasn't being fully rebuilt because of a lack of PHP Memory."

Thanks

Leighton Whiting
Online
Joined: 06/02/2009
I was never able to duplicate

I was never able to duplicate this problem, so I'm still not sure what could be wrong...

Sincerely,
Leighton Whiting

poindog
Offline
Joined: 05/28/2010
Ok. Where would I find the

ok. So where would I find the particular piece of script that relates to the that link?

Leighton Whiting
Online
Joined: 06/02/2009
It should be in the

It should be in the ms_paypublish_list_content() function in ms_paypublish.module

Sincerely,
Leighton Whiting

poindog
Offline
Joined: 05/28/2010
So..

Leighton

Would this have anything to do with it:
[04-Jun-2010 09:59:43] PHP Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at '/usr/local/Zend/lib/Optimizer-2_6_2/php-5.2.x/ZendOptimizer.so') - try reinstalling the Zend Optimizer in Unknown on line 0

Also, being a Drupal novice, where is the actual data kept in relation to the published material?

Thanks

Leighton Whiting
Online
Joined: 06/02/2009
Not sure why you'd need Zend

Not sure why you'd need Zend Optimizer, I don't use it on any of my Drupal sites.

The data for the nodes is stored in the Database (almost everything with Drupal is stored in the database).

Sincerely,
Leighton Whiting

poindog
Offline
Joined: 05/28/2010
Ok.....

Maybe not that basic. I found the data in node_revisions.

Before I start again from scatch -

In the "function ms_paypublish_list_content($uid)" section of the script where it calls "$result = db_query("SELECT * FROM {ms_paypublish_nodes} WHERE uid=%d", $account->uid);"

and then "$rows[] = array(
l($node->title, $node->path),"

I was just wondering where the path is listed because I can't seem to find it anywhere that is in the immediate script or the database?

Leighton Whiting
Online
Joined: 06/02/2009
The node->path is loaded by a

The node->path is loaded by a separate module, not sure which one, in Drupal core when the node is loaded. Are you using clean urls? If you are not, then the node->path might not be loaded properly. Either way, try replacing that line with this:

l($node->title, 'node/'. $node->nid),

That should definitely work if the path one doesn't.

Sincerely,
Leighton Whiting

poindog
Offline
Joined: 05/28/2010
Thanks

I will give it a go.

Just like to say this is a great script. I've been looking a long time for something like this for a while.

P.S. You legend, it worked.

michel
Offline
Joined: 11/05/2010
Same problem today : no view

Same problem today : no view / edit menu for contents available by payed Membership Suite system !

Leighton Whiting
Online
Joined: 06/02/2009
Michel, This actually is a

Michel,
This actually is a very different problem from the one you described here: http://www.moneyscripts.net/forums/support/2010/11/7/urgent-view-edit-me...

The problem on this forum has been fixed.

Sincerely,
Leighton Whiting

Twitter Feed