Unable to choose page type? 5.4

Permalink
We are unable to choose page types with 5.4 upgrades from 5.3 do you have any ideas why I can't select a page type to add pages. It seems like a js error as the selector will not scroll...

 
aaron replied on at Permalink Reply
bump anyone else have this issue?
Fernandos replied on at Permalink Reply
Fernandos
Hi! I had this error ;)

You're not alone. I can tell you it's your and my fault xD hahah the need to sit on the latest technologies has drawbacks too.

In short if you use Google Chrome this is the case. You probably use a too new version of it. Try a different Browser.

Hope this is helpfull to you :)

Cheers
Fernandos
andrew replied on at Permalink Reply
andrew
I'm having trouble duplicating this error - what browser are you using? Also, are you using a built-in theme, a custom theme, or a theme downloaded from our marketplace?
Fernandos replied on at Permalink Reply
Fernandos
Hello Andrew, it's google chrome5 beta that causes that error I think, or a customized chrome version. If you use the original chrome stable the problem disappears.
tbcrowe replied on at Permalink Reply
tbcrowe
I was able to work around this problem by changing the following code in concrete/elements/collection_add.php:
foreach($aks as $ak)
  $requiredKeys[] = intval($ak->getAttributeKeyID());

to:
foreach($aks as $ak) {
  if (is_object($ak))
    $requiredKeys[] = intval($ak->getAttributeKeyID());
}

The problem is that (in my case) the first to elements of $aks were null.
guythomas replied on at Permalink Reply
guythomas
I'm experiencing this problem on one of my sites. Using a custom theme based off of Plain Yogurt.

I can no longer add pages through the sitemap, because the page type carousel is completely non functional. You can try and add a page but are kicked back with a $ct is a non object error.. I can not get the dialog to post anything but ctID = 0..

I get this behavior with both FF and IE.

If I attempt to add a page using the edit ribbon while on an existing page. The grey overlay comes up, but that is it, it will not even show me the add a page dialog.

I can't seem to find the error with firebug in either of these cases.. I also attempted tbcrowes work around, but that also did not have any effect.

Can someone with better JS debugging skills than I , at least tell me which of the js files is handling the page type carousel?
guythomas replied on at Permalink Reply
guythomas
I just thought I would clarify that I found this problem to be related to using the address attribute as a page type attribute.

I documented the problem in this bug report:http://www.concrete5.org/developers/bugs/5-4-2-1/address-attribute-...

If anyone can help me troubleshoot, I would appreciate it, I built a couple of real estate related websites, that use this attribute attached to a page, and they are suffering right now.

Thanks,

Guy