Hi peschehimself,
I installed and tried Required Category Extension; it works correctly.
But it seems that there is some issue with javascript - when I try to post an entry without assigning it to a category, Firebug shows this error
el_name has no properties
if (el_name.substring(0,8)=='field_id') {
It is the line from this script:
<code>//<![CDATA[ form_elements = document.getElementById('entryform').elements; var id_arr = new Array(); for(i=0; i<form_elements.length; i++) { el = form_elements; el_name = el.name; toggle = 0; if (el_name.substring(0,8)=='field_id') {</code>
This error began to appear when I installed Required category extension and set categories to be required for that particular weblog, so it seems that this error is somehow related to Required category extension.
Hi Laisvunas
Very strange as my extension does not modify or add any javascript to the CP.
Could you double check if it’s really my extension that’s causing the problem? Try deactivating all other extensions but Required Category and recheck. I checked it on our dev server and firebug does not throw any error on my side.
Cheers, Peter.
Hi Peter,
You are right. Javascript error is caused by Auto Collapse Empty Custom Fields extension v.1.1.
About this error I have posted an entry in this extension’s forum thread here.
Hi
Thanks for clarifying. In the other thread you posted that the Auto Collapse Empty Custom Fields only is buggy when used together with my extension. Are you sure? Did you try turning off every exension but the Auto Collapse? Can you try that?
As on my side, i don’t see anything that could / would clash with some other extension on the javascript side.
Hi,
When I edit weblog group preferences at CP Home › Admin › Weblog Administration › Weblog Management › Edit Weblog that is, assign weblog to category group or field group, I get this PHP notice (repeated twice):
Notice: Undefined offset: 0 in /www/eh5659/public_html/eesys/extensions/ext.dc_required_category.php on line 215
Notice: Undefined offset: 0 in /www/eh5659/public_html/eesys/extensions/ext.dc_required_category.php on line 215
Despite these notices weblog group preferences were updated correctly.
It seems that this is a small bug in Required category plugin.
Hi Laisvunas
I fixed the bug, please get the newest version here
http://www.designchuchi.ch/index.php/blog/comments/required-category-extension/
This bug only happenned if you use “Update & Finished” in the weblog administration and was only a minor bug.
Hope all works now, Peter.
Hi, I’m using SAEF. When the category is not choose, I get error:
Fatal error: Call to a member function new_entry_form() on a non-object in /www/website/public_html/admin/extensions/ext.dc_required_category.php on line 143
Thanks for the useful extension!
The extension works fine on 1.6.3 but I’m trying on 1.6.2 (build 20080206). When I want activate feature for a weblog, I get error:
MySQL ERROR:
Error Number: 1064
Description: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE `weblog_id`=values(`weblog_id`), requir
Query: INSERT INTO exp_dc_required_cat VALUES('', '2', '1') ON DUPLICATE KEY UPDATE `weblog_id`=values(`weblog_id`), require_cat=values(`require_cat`)
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.