jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
27 stars 39 forks source link

RC1 frontend editevent -->0 Call to a member function format() on bool comes always back! #1581

Closed jojo12 closed 1 year ago

jojo12 commented 1 year ago

I installed an old backup and used the step by step to arrive to JEM4 on Joomla 4. It worked well. But when I try to change something in a event with editevent (frontend), the old known error is back! What did I wrong? How can we change, that this will finish?

mckillo commented 1 year ago

@jojo12 Check commit above or excecuta in mysql: INSERT INTO a8wlc_jem_config (keyname, value, access) VALUES ('flagicons_path', 'media/com_jem/images/flags/w20-png/', '0');

This error is only for migration from JEM 2.X to JEM 4.0rc1. And with this commit is solved, but you have to update the zip file.

jojo12 commented 1 year ago

What does this mean? This is only for an update zip. Beneath that we need an other zip, which is when you install new in Joomla 4?

mckillo commented 1 year ago

In your migration, the _jem_config table hasn't 'flagicons_path key... This is the error. To solved, you can run the this sql line (INSERT...) to add this key. The last zip file shouled be updated with the commit, only add the new admin/sql/updates/mysql/4.0b2.sql file., So, the users do a migration, don't have the error.

mckillo commented 1 year ago

Commit solve it?

mckillo commented 1 year ago

Add bug remove fixed, doesn't the commit work? Does the error continue?.

jojo12 commented 1 year ago

yes it continues

jojo12 commented 1 year ago
Call stack -- # | Function | Location 1 | () | JROOT\libraries\src\Form\Field\CalendarField.php:401 2 | Joomla\CMS\Form\Field\CalendarField->filter() | JROOT\libraries\src\Form\Form.php:1047 3 | Joomla\CMS\Form\Form->filter() | JROOT\libraries\src\Form\Form.php:991 4 | Joomla\CMS\Form\Form->process() | JROOT\libraries\src\MVC\Model\FormModel.php:213 5 | Joomla\CMS\MVC\Model\FormModel->validate() | JROOT\libraries\src\MVC\Controller\FormController.php:622 6 | Joomla\CMS\MVC\Controller\FormController->save() | JROOT\components\com_jem\controllers\event.php:289 7 | JemControllerEvent->save() | JROOT\libraries\src\MVC\Controller\BaseController.php:678 8 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT\components\com_jem\jem.php:49 9 | require_once() | JROOT\libraries\src\Dispatcher\LegacyComponentDispatcher.php:71 10 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() | JROOT\libraries\src\Dispatcher\LegacyComponentDispatcher.php:73 11 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() | JROOT\libraries\src\Component\ComponentHelper.php:361 12 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT\libraries\src\Application\SiteApplication.php:208 13 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT\libraries\src\Application\SiteApplication.php:249 14 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT\libraries\src\Application\CMSApplication.php:293 15 | Joomla\CMS\Application\CMSApplication->execute() | JROOT\includes\app.php:61 16 | require_once() | JROOT\index.php:32
mckillo commented 1 year ago

You could review to JEM setting and the datetime format ... I think that you have the old format.

jojo12 commented 1 year ago

all dates have standard NULL

mckillo commented 1 year ago

JEM4rc1 - datetime in the setting (backend) IS JEm setting right too?

jojo12 commented 1 year ago

the settings are like your image

mckillo commented 1 year ago

The old backup, what have it installed? I tested agaim migration process from 2.3.6 (with sample data loaded) with JL3 to J4 with JEM 4.0rc1 and it works, after I edita and sace event and it works, not error.

jojo12 commented 1 year ago

Has it to do that my old backup was Joomla 3.8 with JEM 2.3.3 which I updated first to 2.3.5 updated then Joomla to 3.10.11, then JEM 2.3.6, then like in the step by step.