j2commerce / j2cart

J2Commerce - Open Source eCommerce extension for Joomla
https://www.j2commerce.com
GNU General Public License v3.0
11 stars 9 forks source link

Poblems after migration to Joomla 5 #89

Open mkd-od opened 1 week ago

mkd-od commented 1 week ago

Hi,

after I migrated the website from Joomla 3 to Joomla 5 https://frauenprojekt-kenia.de/ with J2store 4.0.5 there were the following problems:

J2Store Dashboard does not show sales statistics.

Klick on configuration, I get a white page.

When I try to create tax, it's impossible (see attached picture).

At Standard Shipping methods, it's nothing to see!

You can create a new Joomla post. If you turn it into a J2stor product, a white page appears after saving and you can no longer edit the article.

I have no experience with PHP programming and hope for help with bug fixing.

brianteeman commented 1 week ago

A white page is an error message in disguise - go to the global configuration and set error reporting to maximum and enable debug. Then repeat the steps you took to get the white page and report back with the full displayed errors.

image

image

mkd-od commented 1 week ago

Hi, thanks for your feedback.

These errors were displayed

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/engel-shop/public_html/libraries/src/Log/LogEntry.php on line 126

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/engel-shop/public_html/libraries/vendor/symfony/error-handler/Exception/FlattenException.php on line 329

Greetings Jörg

mkd-od commented 1 week ago

I changed PHP Maximum Storage Allocation from 128M to 256M. Now I can edit j2store-configuration,

Klick on j2store-dashboard show the following error: Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/engel-shop/public_html/libraries/f0f/database/driver/joomla.php on line 258

When trying to edit an article, the following appears: implode(): Argument #1 ($array) must be of type array, string given

Call Stack 1 | () | JROOT/layouts/joomla/form/field/media.php:160 2 | implode() | JROOT/layouts/joomla/form/field/media.php:160 3 | include() | JROOT/libraries/src/Layout/FileLayout.php:128 4 | Joomla\CMS\Layout\FileLayout->render() | JROOT/administrator/components/com_j2store/helpers/j2html.php:375 5 | J2Html::media() | JROOT/administrator/components/com_j2store/views/product/tmpl/form_images.php:35 6 | include() | JROOT/libraries/f0f/view/view.php:442 7 | F0FView->loadAnyTemplate() | JROOT/libraries/f0f/view/view.php:843 8 | F0FView->loadTemplate() | JROOT/administrator/components/com_j2store/views/product/tmpl/form_simple.php:159 9 | include() | JROOT/libraries/f0f/view/view.php:442 10 | F0FView->loadAnyTemplate() | JROOT/libraries/f0f/view/view.php:843 11 | F0FView->loadTemplate() | JROOT/administrator/components/com_j2store/views/product/tmpl/form.php:172 12 | include() | JROOT/libraries/f0f/view/view.php:442 13 | F0FView->loadAnyTemplate() | JROOT/libraries/f0f/view/view.php:843 14 | F0FView->loadTemplate() | JROOT/libraries/f0f/view/view.php:474 15 | F0FView->display() | JROOT/libraries/f0f/view/raw.php:128 16 | F0FViewRaw->display() | JROOT/libraries/f0f/controller/controller.php:1125 17 | F0FController->display() | JROOT/libraries/f0f/controller/controller.php:1330 18 | F0FController->edit() | JROOT/libraries/f0f/controller/controller.php:967 19 | F0FController->execute() | JROOT/administrator/components/com_j2store/controllers/products.php:23 20 | J2StoreControllerProducts->execute() | JROOT/libraries/f0f/dispatcher/dispatcher.php:330 21 | F0FDispatcher->dispatch() | JROOT/plugins/content/j2store/fields/j2store.php:48 22 | JFormFieldJ2Store->getInput() | JROOT/libraries/src/Form/FormField.php:1056 23 | Joomla\CMS\Form\FormField->renderField() | JROOT/layouts/joomla/edit/fieldset.php:43 24 | include() | JROOT/libraries/src/Layout/FileLayout.php:128 25 | Joomla\CMS\Layout\FileLayout->render() | JROOT/libraries/src/Layout/LayoutHelper.php:76 26 | Joomla\CMS\Layout\LayoutHelper::render() | JROOT/layouts/joomla/edit/params.php:170 27 | include() | JROOT/libraries/src/Layout/FileLayout.php:128 28 | Joomla\CMS\Layout\FileLayout->render() | JROOT/libraries/src/Layout/LayoutHelper.php:76 29 | Joomla\CMS\Layout\LayoutHelper::render() | JROOT/administrator/components/com_content/tmpl/article/edit.php:113 30 | include() | JROOT/libraries/src/MVC/View/HtmlView.php:416 31 | Joomla\CMS\MVC\View\HtmlView->loadTemplate() | JROOT/libraries/src/MVC/View/HtmlView.php:204 32 | Joomla\CMS\MVC\View\HtmlView->display() | JROOT/administrator/components/com_content/src/View/Article/HtmlView.php:135 33 | Joomla\Component\Content\Administrator\View\Article\HtmlView->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:697 34 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT/administrator/components/com_content/src/Controller/DisplayController.php:65 35 | Joomla\Component\Content\Administrator\Controller\DisplayController->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:730 36 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143 37 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:361 38 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:150 39 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:195 40 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:306 41 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/includes/app.php:58 42 | require_once() | JROOT/administrator/index.php:32

newlinewebdesign commented 1 week ago

The error in the article view is a bug that affected J2Store version 4.0.5 and the latest releases of Joomla 4 & 5. Please install 4.0.7 on top of your current j2store installation and the issue should be resolved.

mkd-od commented 1 week ago

The error in the article view is a bug that affected J2Store version 4.0.5 and the latest releases of Joomla 4 & 5. Please install 4.0.7 on top of your current j2store installation and the issue should be resolved.

Thanks.

You can create a new Joomla post. If you turn it into a J2stor product, a white page appears after saving and you can no longer edit the article.

This is fixed!

The following problems still occur:

The J2Store dashboard does not display sales statistics. Error: Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/engel-shop/public_html/libraries/f0f/database/driver/joomla.php on line 258

There are no entries for the standard shipping methods! The created shipping methods for Germany (free of charge from 100 € value of goods and postal shipping for 1.60 €) work. No error occurs. See attachd picture. standard shipping methods

If you are logged in to https://frauenprojekt-kenia.de/index.php/2022-03-21-16-55-23/meine-daten#address-tab, you cannot edit the addresses created in Order Data.

Greetings Jörg

newlinewebdesign commented 1 week ago

The fix for the standard shipping issue has been included in the 4.0.8 release that should be out today. Regarding the statistics module, have go gone into the module's settings to make sure it is set to display the results of either All or specific order statuses?

mkd-od commented 1 week ago

Regarding the statistics module, have go gone into the module's settings to make sure it is set to display the results of either All or specific order statuses?

I don't know where to set up the dashboard

newlinewebdesign commented 1 week ago

To check the settings, you should find the modules in the administrator modules section under the content section and check the order status field to make sure it at least shows all as well as making sure it's published of course.

mkd-od commented 1 week ago

There are no entries for the standard shipping methods! fixed

To check the settings, you should find the modules in the administrator modules section under the content section and check the order status field to make sure it at least shows all as well as making sure it's published of course.

j2store Dashoard 01

In administrator modules section J2 I can't find a position for J2-Dashboard:

administrator module J2 statics

mkd-od commented 1 week ago

Joomla Dashoard 02

mkd-od commented 1 week ago

Apparasis there is a problem when multiple tax rates are set..

In Germany, there are 7% VAT and 19% VAT

If both tax rates are activated and in the basket is an item with 19% the VAT amounts for both tax rates are displayed in the shopping cart..

Artikel mit19 prozent

Warenkorb 2 Steuersaetze

newlinewebdesign commented 1 week ago

Joerg,

Can you go to j2commerce.com and send us a message with the login creds so we can take a look at what's going on? Adam

On Wed, Nov 13, 2024, 5:19 AM Joerg Mueller @.***> wrote:

There are no entries for the standard shipping methods! fixed

We have created shipping and tax rates for EU countries. But it is impossible to order with an address from a defined EU country

— Reply to this email directly, view it on GitHub https://github.com/j2commerce/j2cart/issues/89#issuecomment-2473281497, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAUB5JGNY3J7OCUFQMV6P32AMYSXAVCNFSM6AAAAABRQEH3Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTGI4DCNBZG4 . You are receiving this because you commented.Message ID: @.***>

alantamb commented 1 week ago

@mkd-od Try to check my settings.

j2stat1 j2stat2 j2stat3

mkd-od commented 1 week ago

Joerg, Can you go to j2commerce.com and send us a message with the login creds so we can take a look at what's going on? Adam

I sent it twice. The answer was always 403

If you don't received my mail send me a mail to Technik@mkd.de.

mkd-od commented 1 week ago

@mkd-od Also I suggest you to set your currency tab. By Default J2Store use the decimal with . and thousands with , like the american currency 1,000.00 $, but in Europe we have to set , for decimal and . for thousands 1.000,00 €

Thanks for your feedback. I know it, but it's not the reason.

mkd-od commented 1 week ago

@mkd-od Try to check my settings.

I dont have any template layout positions with j2store... This is my problem!

mkd-od commented 1 week ago

@newlinewebdesign

Joerg, Can you go to j2commerce.com and send us a message with the login creds so we can take a look at what's going on? Adam

I sent the login creds