[solved] error Calendar.setup: Nothing to setup on item edit

More
11 years 8 months ago - 11 years 8 months ago #34207 by kath
hi,

i'm trying to solve the following:

[Problem]
On a category page, when i try to edit an item that has two custom fields of type "date", I can't. Instead I get two alerts that say "Calendar.setup: Nothing to setup (no fields found). Please check your code". after that the component area stays blank.
On a single item page however, there is no such error and I can successfully edit.

[Details]
In JCE global config i tried different settings for gzip- and javascript-compression without success.
I tried different editors for my user without success (JCE, TinyMce, CodeMirror, none).
I render the edit-link like this in my FC-templates:
single-item:
<?php echo(flexicontent_html::editbutton( $this->item, $this->params ));?>
category-item in foreach-loop:
<?php echo(flexicontent_html::editbutton( $item, $item->params ));?>
I can only edit my own items.

[Hints]
Not a problem, but may help debugging: My edit-links look different on the two page types for some reason: Category page shows a text link, single item page shows the edit icon.
URLs look like this:
category-page: <!-- m --><a class="postlink" href="hxxp://myurl/my_test_dates?view=item&task=edit&cid=17:dates&id=49:my_date_alias">hxxp://myurl/my_test_dates?view=item&ta ... date_alias</a><!-- m -->
item-page: <!-- m --><a class="postlink" href="hxxp://myurl/my_test_date?view=item&task=edit&cid=17:dates&id=49:my_date_alias">hxxp://myurl/my_test_date?view=item&tas ... date_alias</a><!-- m -->

[Setup]
joomla 2.5.9
FC 2.0.0 RC9b r1601
jce 2.3.3.1

can anyone help?
thanks!
kath
Last edit: 11 years 8 months ago by kath.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34209 by micker

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34212 by kath
wow, thanks for your quick response, Micker!

Unfortunately, after successfully updating, clearing browser's and joomla's cache, logging out and in again, doing FC's post-install-actions (enabling all plugins and such), I now get a lot of

Notice: Undefined property: stdClass::$slug in /var/www/***/components/com_flexicontent/classes/flexicontent.fields.php on line 576

instead of my frontend.

what can i do about that?
thanks!
kath

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34213 by ggppdk
Hello, in r1649 we fixed :
-- 7 minor issues and
-- 2 of medium importance issues (date field not displayed in new item form , plus pagination not working in advanced search)

The message you see is because JS calendar library can not setup an form input element (the date is field is empty)

2-3 more minor importance fixes and we will have v2.0.1

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34216 by kath
thank you, but still the update leaves me with a broken frontend: i get nothing except the mentioned errors. that is unfortunately blocking.
is there a quickfix for me other that downgrade / rollback again?

thanks,
kath

ps: the above download-latest-link points to 2.0.0 r1648

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34240 by ggppdk
Found and fixed to apply a quick fix now

edit plugin file date.php
and remove line (about 241)
Code:
if (empty($value)) continue;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.392 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline