One last calendar problem

Permalink
Hi, I know I've had a lot of problems with the calendar, hopefully this will be the last.

I'm unable to add events it would seem.
I add the event, it says "Event Added" and then the it lists "NO EVENTS".

When logged in as an admin, under the calendar, I see the following error:

Warning: include(/home/content/j/u/s/justinsl/html/blocks/content/editor_config.php) [function.include]: failed to open stream: No such file or directory in /home/content/j/u/s/justinsl/html/packages/calendar/elements/add_event_overlay.php on line 14
Warning: include() [function.include]: Failed opening '/home/content/j/u/s/justinsl/html/blocks/content/editor_config.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/home/content/j/u/s/justinsl/html/libraries/3rdparty:/home/content/j/u/s/justinsl/html/concrete/config/../libraries/3rdparty') in /home/content/j/u/s/justinsl/html/packages/calendar/elements/add_event_overlay.php on line 14


I don't see the error when logged in as a normal user, or a guest.

Any idea what the issue is? Could this error be what is causing it? Any help is appreciated, much thanks!

Chris

 
Tony replied on at Permalink Reply
Tony
it looks like it's looking for that editor config file in the wrong location, in the concreteRoot/blocks directory instead of the concreteRoot/concrete/blocks directory.

This is in concreteRoot/packages/calendar/elements/add_event_overlay.php

$contentBlockType = BlockType::getByHandle('content');
include( $contentBlockType->getBlockTypePath().'/editor_config.php' );


Do you have an overrided version of the content block in your concreteRoot/blocks directory?

if so, maybe remove it, or make sure it has the editor_config.php file in there.

Alternatively, you could change that include to look like this:

include( DIR_FILES_BLOCK_TYPES_CORE.'/content/editor_config.php' );


What version of concrete are you running btw?