I added a variant to the node template. I enabled the user_profile content item found under user content. I get this notice:

Notice: Undefined property: stdClass::$access in //sites/all/modules/ctools/plugins/content_types/user_context/user_profile.inc on line 22

It is not related to the profile module as it appears when profile is on and off.

I saw this post http://drupal.org/node/931648 but assume the problems are not the same?

thanks for your help.

Comments

merlinofchaos’s picture

Hmm. That error seems to indicate that the account object being passed in is not quite valid, but isn't completley missing, either.

What user context is being used? Does it come from an argument?

idcm’s picture

I am glad you ask because I was noticing that the content items I am choosing are not actually contents I should have access to. I have an install that I have been using to learn Panels. I have uninstalled it and reinstalled several times. I have cleaned out all the database variables I can find. I then assume that when I go to start over, creating a variant supposedly for the first time on this install, I get the content options (typically provided by a context). I go to my install that is brand new, haven't created any panels yet, and I get the default content options I expect.

So to answer your question, I have no contexts set up for the variant in question but I have several content item options available - including the User content item where I am selecting the user-profile item.

I have attached two screen shots - one from the re-installed Panels and one from a site where I have not setup a variant yet.

ALSO, I have been playing around with adding other content items to see what they look like and now I have the following notices. - just in case they are related. I have attached a screen shot of the items included in the variant.

Notice: Undefined property: stdClass::$access in /sites/all/modules/ctools/plugins/content_types/user_context/user_profile.inc on line 22

Notice: Undefined variable: type in /sites/all/modules/ctools/plugins/content_types/node_context/node_terms.inc on line 93

Notice: Trying to get property of non-object in /sites/all/modules/ctools/plugins/content_types/node_context/node_terms.inc on line 93

I understand that notices aren't suppose to be a big deal but I am just sharing. BUT, maybe this is revealing an underlying issue with left over variable settings?

merlinofchaos’s picture

Can you give me complete instructions for getting something into that position? The screenshots are good but I'm having trouble figuring out what i need to do to reproduce this.

For what it's worth, the "Node being viewed" is a context in this situation. There is definitely something wrong if that is giving that notice, and it does look like it might be related to the user profile notice.

In the "re-install" screenshot, a number of categories are showing up that suggests the system *thinks* it has a 'node', 'term', 'user' and 'form' context available. Which...I guess would be true if using the node_edit page.

idcm’s picture

The problem is, I have no idea how this came about. I am the one who was having the issues with the user.module (http://drupal.org/node/953724). I finally got that straightened out and returned to re-creating my variants and something just wasn't making sense. I remembered having to add a user context to get at the user-profile but when I looked at the content options (making sure I didn't add a context I didn't need) I saw all the options. It took me a few minutes to realize that something was off so I went to a Panel install that I had not used yet and saw the issue.

If you send the tables you need, I can send you the exports (whatever tables store the configurations). Would that help? I have to assume the problem lies in the what is being storied in the variables, right?

feel free to contact me directly if you want to do a live exploration of the site. I would be happy to set up a gotomeeting and share my screen.

idcm’s picture

Also, I just created a custom panel page and the content items available are the default items. No extra. So far it seems to be limited to the Node template.

idcm’s picture

I did an experiment. I enabled all the contexts and then turned them back off in a desperate attempt to see if I could re-engage the variables and then get them to turn off. did not work. oh well. long shot.

idcm’s picture

Priority: Normal » Major

I have two sites. They are both separate installations. One install is for the purpose of learning Panels. The other is an existing site I was thinking about adding Panels to (clean Panel install I have referenced).

Taking a multi-site installation approach, I added another site to the Drupal install hosting the "learning" site. It has its own database but it is using the same code - typical multi-site setup. I was adding a variant to this site and found I had content items available that I shouldn't. The same issue is transferring from one site to the other on this mult-site installation.

For example, I have an option to add view contexts content. This site doesn't even have views enabled and never has. It is giving me access to the same content items from the "corrupted?" site.

How is this possible? How are variable settings from one database being called by another database? I will admit that the "learning" site might have a corrupted database considering all the mucking around I have done in the database trying to figure remove panels and ctools from the site. Because of that probability, I opened another site with only Panels and Ctools enabled. This other site is the second site running off the install that is hosting the first "learning" site.

New database means clean slate. No legacy data and as such, no problems. It appears the site code is storing or accessing data from the other site. How/why is that possible?

This is serious for me. Please help. Tell me what I can do to help you figure this out.

idcm’s picture

Ah, I see views was installed, just not views UI. My mistake. I am continuing testing - trying to recreate what happened. Could be I am just confused on the multi-site issue.

idcm’s picture

StatusFileSize
new18.07 KB

ok, I created a third site on the multi just to make sure I can duplicate the second. attached in the content that I have available on a brand new variant on a site that has nothing but panels/ctools. no nodes, no views, no vocabs, nothing. I just created the site, enabled panels/ctools (and the admin module for convenience). I enabled Node template. I did the add variant process - no settings except the required layout. at the end of the process (before saving) I looked to see what content i have available. I have more content than I believe I should - if I believe the install of panels/ctools on my other site.

Am I nuts? be nice.

idcm’s picture

I decided it was probably a patch I installed. I saw that ctools 1.8 and panels 3.8 were released yesterday so I am starting fresh. I will let you know if I can recreate the problem.

Ashlar’s picture

Status: Active » Closed (won't fix)

This bug report has not been active for over six months. In an effort to clean-up the issue queue this item has been closed. If your modules are current and the report is still relevant please feel free to change the Status back to active.