Main Menu

Recent posts

#91
Supporto (Support) / Re: I can not migrate from 3.1...
Last post by federica - 05 September 2023, 20:11:20
No, it is not correct.
If you have a joomla 3 website and you want upgrade it to joomla 4 you have to upgrade joomla then upgrade Abook.
The export is not necessary.
#92
Supporto (Support) / Re: I can not migrate from 3.1...
Last post by Bebrona - 05 September 2023, 19:06:28
So if i understood this correctly i first have to install Abook 3.x on Joomla 4.x import the files and than upgrade Abook to 4.x?
#93
Supporto (Support) / Re: Loan
Last post by federica - 05 September 2023, 10:30:33
Hi Jip,
currently there is no email sending functionality
#94
Supporto (Support) / Re: I can not migrate from 3.1...
Last post by federica - 05 September 2023, 10:05:24
The export file from abook 3.x is not compatible to Abook 4.x.
To upgrade your website you have to upgrade joomla to 4.x then upgrade Abook installing the 4.x version.
#95
Supporto (Support) / Re: I can not migrate from 3.1...
Last post by Bebrona - 04 September 2023, 21:12:27
Thanks for the answer. I managed to export the file.

But when i try to IMPORT it in version 4.0 I get this error

1064 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 '<br /> <b>Deprecated</b>: The each() function is deprecated. This message will ' at line 1

#96
Supporto (Support) / Re: I can not migrate from 3.1...
Last post by federica - 04 September 2023, 10:05:02
Hi Bebrona,
the "each" function is not longer available in PHP 8
You have to set PHP 7.4 then try to export again.
Otherwise you can make the backup directly using mysql (eg: phpmyadmin)
#97
Supporto (Support) / I can not migrate from 3.1.5 t...
Last post by Bebrona - 03 September 2023, 12:06:18
Before i migrate to version 4 i would like to export all my books from 3.1.5 but this is not possible.

I get this error after pressing the export-key

0 Call to undefined function each()
#98
Errori (Bugs) / Book Manager list pagination d...
Last post by iberan - 27 July 2023, 10:36:34
Hi Federica,

As you can see also on Abook v4.0.1 demo site, the pagination doesn't work on Book Manager.

Based on /administrator/components/com_abook/models/authors.php protected function populateState(...) it is solved me on /administrator/components/com_abook/models/books.php from #58 to #100 change:
        protected function populateState($ordering = null, $direction = null)
        {
$app = JFactory::getApplication();
if ($layout = $app->input->get('layout')) {
                        $this->context .= '.'.$layout;
                }
$search = $this->getUserStateFromRequest($this->context.'.filter.search', 'filter_search');
                $this->setState('filter.search', $search);

$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
                $this->setState('filter.access', $access);

$published = $this->getUserStateFromRequest($this->context.'.filter.published', 'filter_published', '');
                $this->setState('filter.published', $published);

$categoryId = $this->getUserStateFromRequest($this->context.'.filter.category_id', 'filter_category_id');
                $this->setState('filter.category_id', $categoryId);

$level = $this->getUserStateFromRequest($this->context.'.filter.level', 'filter_level', 0, 'int');
                $this->setState('filter.level', $level);

$language = $this->getUserStateFromRequest($this->context.'.filter.language', 'filter_language', '');
                $this->setState('filter.language', $language);

$author = $this->getUserStateFromRequest($this->context.'.filter.author_id', 'filter_author_id', '');
                $this->setState('filter.author_id', $author);

$editor = $this->getUserStateFromRequest($this->context.'.filter.editor_id', 'filter_editor_id', '');
                $this->setState('filter.editor_id', $editor);

$tag = $this->getUserStateFromRequest($this->context.'.filter.tag_id', 'filter_tag_id', '');
                $this->setState('filter.tag_id', $tag);

parent::populateState('a.title', 'asc');
// Force a language
                $forcedLanguage = $app->input->get('forcedLanguage');

                if (!empty($forcedLanguage))
                {
                        $this->setState('filter.language', $forcedLanguage);
                        $this->setState('filter.forcedLanguage', $forcedLanguage);
                }
        }
to:
        protected function populateState($ordering = null, $direction = null)
        {
$app = JFactory::getApplication();
if ($layout = $app->input->get('layout')) {
                        $this->context .= '.'.$layout;
                }
$search = $app->getUserStateFromRequest($this->context.'.filter.search', 'filter_search');
                $this->setState('filter.search', $search);

$access = $app->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
                $this->setState('filter.access', $access);

$published = $app->getUserStateFromRequest($this->context.'.filter.published', 'filter_published', '');
                $this->setState('filter.published', $published);

$categoryId = $app->getUserStateFromRequest($this->context.'.filter.category_id', 'filter_category_id');
                $this->setState('filter.category_id', $categoryId);

$level = $app->getUserStateFromRequest($this->context.'.filter.level', 'filter_level', 0, 'int');
                $this->setState('filter.level', $level);

$language = $app->getUserStateFromRequest($this->context.'.filter.language', 'filter_language', '');
                $this->setState('filter.language', $language);

$author = $app->getUserStateFromRequest($this->context.'.filter.author_id', 'filter_author_id', '');
                $this->setState('filter.author_id', $author);

$editor = $app->getUserStateFromRequest($this->context.'.filter.editor_id', 'filter_editor_id', '');
                $this->setState('filter.editor_id', $editor);

$tag = $app->getUserStateFromRequest($this->context.'.filter.tag_id', 'filter_tag_id', '');
                $this->setState('filter.tag_id', $tag);

parent::populateState('a.title', 'asc');
// Force a language
                $forcedLanguage = $app->input->get('forcedLanguage');

                if (!empty($forcedLanguage))
                {
                        $this->setState('filter.language', $forcedLanguage);
                        $this->setState('filter.forcedLanguage', $forcedLanguage);
                }
        }
#99
Errori (Bugs) / Re: unexpected back slash
Last post by iberan - 20 July 2023, 11:15:56
Thank you so much!
#100
Errori (Bugs) / Re: unexpected back slash
Last post by federica - 20 July 2023, 10:23:17
It is an escape character useful to call a function.
Joomla core also do that
eg. components/com_contact/helpers/route.php line 16
you can see:
\defined('_JEXEC') or die;)