Forum
Category Problems with 2.8.1
Complete new install, Go to create 1st new category set and this...
Fatal error: Call to a member function id() on a non-object in C:\xampp\htdocs\public_html\perch\core\apps\categories\modes\sets.edit.pre.php on line 41
heres the code... lines 38 thru 42
if (!is_object($Set)) {
$Set = $Sets->create($data);
PerchUtil::redirect(PERCH_LOGINPATH .'/core/apps/categories/sets/edit/?id='.$Set->id().'&created=1');
}
if $Set NOT object... then redirect try's to use $Set->id()...
But, $Set->id() is returning NULL..
I think this is the problem?
I just did a var_dump on $data... When I was creating a set named "Type"
Using the variables in the dumped array I am able to create this set in phpMyAdmin then work with the set, even add categories to the set.
If I try to update the set, it gives success message but the set still has no slug value.
Unable to create additional sets either
Are you running Perch or Runway?
Runway. This is on my development server. Windows.
It's all fixed :-) Thanks.
And Perch 2.8.2 is now available. Thanks Robert.
Hello,
Not sure if it's a related issue. I can't assign a category template to a category, it keeps reverting to "default".
I tried a forced update but it doesn't solve the issue.
Hello,
I'm still unable to assign a category template to a category.
Under "Set Options" the category template ("Client" in my case) shows up in the select dropdown. I select it, save changes, get the confirmation message ("Your set has been successfully edited. Return to category listing"), but it's not actually saved, it's still the default "Category" template which is used.
Using latest Perch, see diagnostics report in previous post.
Stephane, I am sure the problem your having isn't related to the one I was having... I say this because the 2.8.2 update solved my issues. I have marked this thread as solved.
It's best if you start a new thread so your problem can be addressed directly.
In your new thread please post diagnostics report and the templates which are not working correctly.
Thanks, Robert Ketter :)