Problem with AJAX/Forms/Yahoo on OXID 6.0.0

Hello!
I have small problem and i need some advice.

I was created module which works correct with OXID 4.10.6. It is the same ajax solution as is in “articles and attribs”. When i copied this module to OXID 6.0.0, i has got problem with loading oxcontent database table to iframe boxes (containers).

Probably there was some changes in core/ajax. Have anybody catch this problem and found solution?

Log said that oxid can’t found class but the same code are working on 4.6.10.

This is error log:
[06 Dec 20:03:48.751331 2017] [exception] [type OxidEsales\Eshop\Core\Exception\SystemComponentException] [code 0] [file C:\xampp\htdocs\oxideshop6-test\oxideshop\vendor\oxid-esales\oxideshop-ce\source\Core\UtilsObject.php] [line 222] [message EXCEPTION_SYSTEMCOMPONENT_CLASSNOTFOUND ]
[06 Dec 20:03:48.751331 2017] [exception] [stacktrace] #0 [internal function]: OxidEsales\EshopCommunity\Core\UtilsObject->oxNew(NULL)
#1 C:\xampp\htdocs\oxideshop6-test\oxideshop\source\oxfunctions.php(103): call_user_func_array(Array, Array)
#2 C:\xampp\htdocs\oxideshop6-test\oxideshop\source\admin\oxajax.php(49): oxNew(NULL)
#3 {main}
[06 Dec 20:03:48.752331 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file C:\xampp\htdocs\oxideshop6-test\oxideshop\source\admin\oxajax.php] [line 51] [message EXCEPTION_FILENOTFOUND xxxxxxxxxxxxxxxxxxxxxx_ajax]
[06 Dec 20:03:48.752331 2017] [exception] [stacktrace] #0 {main}
[06 Dec 20:03:48.753330 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file C:\xampp\htdocs\oxideshop6-test\oxideshop\source\admin\oxajax.php] [line 51] [message EXCEPTION_FILENOTFOUND xxxxxxxxxxxxxxxxxxxxxx_ajax]
[06 Dec 20:03:48.753330 2017] [exception] [stacktrace] #0 {main}
[06 Dec 20:03:48.778331 2017] [exception] [type OxidEsales\Eshop\Core\Exception\SystemComponentException] [code 0] [file C:\xampp\htdocs\oxideshop6-test\oxideshop\vendor\oxid-esales\oxideshop-ce\source\Core\UtilsObject.php] [line 222] [message EXCEPTION_SYSTEMCOMPONENT_CLASSNOTFOUND ]
[06 Dec 20:03:48.778331 2017] [exception] [stacktrace] #0 [internal function]: OxidEsales\EshopCommunity\Core\UtilsObject->oxNew(NULL)
#1 C:\xampp\htdocs\oxideshop6-test\oxideshop\source\oxfunctions.php(103): call_user_func_array(Array, Array)
#2 C:\xampp\htdocs\oxideshop6-test\oxideshop\source\admin\oxajax.php(49): oxNew(NULL)
#3 {main}
[06 Dec 20:03:48.779333 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file C:\xampp\htdocs\oxideshop6-test\oxideshop\source\admin\oxajax.php] [line 51] [message EXCEPTION_FILENOTFOUND xxxxxxxxxxxxxxxxxxxxxx_ajax]
[06 Dec 20:03:48.779333 2017] [exception] [stacktrace] #0 {main}
[06 Dec 20:03:48.780333 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file C:\xampp\htdocs\oxideshop6-test\oxideshop\source\admin\oxajax.php] [line 51] [message EXCEPTION_FILENOTFOUND xxxxxxxxxxxxxxxxxxxxxx_ajax]
[06 Dec 20:03:48.780333 2017] [exception] [stacktrace] #0 {main}

Any suggestions?

Had the some problem … my solution: Full rewriting for OXID 6 ;-/

1 Like

ehhh i hoped there will be less work solution :wink: thanks for replay

perhaps it´s a bug --> https://bugs.oxid-esales.com

hmmmm… i was made small research build-in fcpayone module. It use ajax with old solution and somehow it works.

did you try the same naming?

class myModule_Main_Ajax extends ajaxListComponent
1 Like

No i didn’t yet. But I will try. Thanks for reply.

Maybe this? https://bugs.oxid-esales.com/view.php?id=6729

I have the same problem, but in my case, when I am testing local on OXID 6, AJAX pop-up is working perfect, but on server, it’s always empty and cannot assign products…

Any idea?

Thank you.

@user54547457 - but you created module from the begginning? for oxid 6 or use module with ajax from oxid 4.6?

The Module was made to work properly on OXID 4.7.
I upgraded it to work on OXID 6.0 successfully.

But, when I installed it on server, I am getting these errors:

[21 Dec 11:56:37.637248 2017] [exception] [type OxidEsales\Eshop\Core\Exception\SystemComponentException] [code 0] [file /home/demomodules/www/ox6/www/vendor/oxid-esales/oxideshop-ce/source/Core/UtilsObject.php] [line 222] [message EXCEPTION_SYSTEMCOMPONENT_CLASSNOTFOUND ]
[21 Dec 11:56:37.637248 2017] [exception] [stacktrace] #0 [internal function]: OxidEsales\EshopCommunity\Core\UtilsObject->oxNew(NULL)
[21 Dec 11:56:37.637248 2017] [exception] [stacktrace] #1 /home/demomodules/www/ox6/www/source/oxfunctions.php(103): call_user_func_array(Array, Array)
[21 Dec 11:56:37.637248 2017] [exception] [stacktrace] #2 /home/demomodules/www/ox6/www/source/admin/oxajax.php(48): oxNew(NULL)
[21 Dec 11:56:37.637248 2017] [exception] [stacktrace] #3 {main}
[21 Dec 11:56:37.637458 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file /home/demomodules/www/ox6/www/source/admin/oxajax.php] [line 50] [message EXCEPTION_FILENOTFOUND xxxxxxxx_main_ajax]
[21 Dec 11:56:37.637458 2017] [exception] [stacktrace] #0 {main}
[21 Dec 11:56:37.637494 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file /home/demomodules/www/ox6/www/source/admin/oxajax.php] [line 50] [message EXCEPTION_FILENOTFOUND ebox_googlebase_main_ajax]
[21 Dec 11:56:37.637494 2017] [exception] [stacktrace] #0 {main}
[21 Dec 11:56:37.659934 2017] [exception] [type OxidEsales\Eshop\Core\Exception\SystemComponentException] [code 0] [file /home/demomodules/www/ox6/www/vendor/oxid-esales/oxideshop-ce/source/Core/UtilsObject.php] [line 222] [message EXCEPTION_SYSTEMCOMPONENT_CLASSNOTFOUND ]
[21 Dec 11:56:37.659934 2017] [exception] [stacktrace] #0 [internal function]: OxidEsales\EshopCommunity\Core\UtilsObject->oxNew(NULL)
[21 Dec 11:56:37.659934 2017] [exception] [stacktrace] #1 /home/demomodules/www/ox6/www/source/oxfunctions.php(103): call_user_func_array(Array, Array)
[21 Dec 11:56:37.659934 2017] [exception] [stacktrace] #2 /home/demomodules/www/ox6/www/source/admin/oxajax.php(48): oxNew(NULL)
[21 Dec 11:56:37.659934 2017] [exception] [stacktrace] #3 {main}
[21 Dec 11:56:37.660150 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file /home/demomodules/www/ox6/www/source/admin/oxajax.php] [line 50] [message EXCEPTION_FILENOTFOUND xxxxxxxx_main_ajax]
[21 Dec 11:56:37.660150 2017] [exception] [stacktrace] #0 {main}
[21 Dec 11:56:37.660186 2017] [exception] [type OxidEsales\Eshop\Core\Exception\FileException] [code 0] [file /home/demomodules/www/ox6/www/source/admin/oxajax.php] [line 50] [message EXCEPTION_FILENOTFOUND xxxxxxxx_main_ajax]
[21 Dec 11:56:37.660186 2017] [exception] [stacktrace] #0 {main}

So, when I run module local, class(file) xxxx_main_ajax.php is called properly, but on server, not.

if i will made it i will paste solution :slight_smile:

1 Like

I will keep trying to.

tell me how you install module on online server? Did you try composer update on local and copy vendor catalog from vm to onlineserver? Where you put autoloader key?

Maybe it will help you:

I am installing it using the old way, copy-paste.

I have already installed two modules using the old way and they’re working properly.

In the moment, you try to install a module that was written with namespaces, these namespaces have to be registered in OXID eShop 6 with a composer run, otherwise this module will not work or will not work properly.

At least you may still copy it into the modules folder, run composer and only then actitvate it from the admin panel.

If the module is written without namespaces, it might still work (with only a few adaptions) due to the backwards compatibility wrapper.

Are there any news from OXID about problem with AJAX calls?

There is a fixe in OXID 6.1, please have a look.

Ohhh… it’s a great news :slight_smile: do we know when update will be released?