View Issue Details

IDProjectCategoryView StatusLast Update
0004037OXID eShop (all versions)2. ----- eShop backend (admin) -----public2012-06-21 08:59
Reportersmxsm Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.6.0 revision 44406 
Fixed in Version4.6.2 revision 46646 
Summary0004037: New module installation setup does not support admin includes for AJAX popups
DescriptionIf a custom OXID eShop module contains an include PHP file for the admin area to show a custom AJAX selection popup, the file is not found / loaded by oxajax.php.
The error message is:
PHP Warning: include_once(): Failed opening 'inc/smxb2b_accounts_main.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /...smxDemoshopB2B46/admin/oxajax.php on line 740

In this example, the file "smxb2b_accounts_main.inc.php" is located at "/modules/shoptimax/smxb2b_accounts/admin/inc/" and included from "/modules/shoptimax/smxb2b_accounts/admin/smxb2b_accounts_main.php".
There is a "vendormetadata.php" and also a "metadata.php" file provided with the module.

AFAIK there is no way to specify file locations for admin includes in the metadata.php file - only for "regular" PHP classes and templates.
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

vaidas.matulevicius

2012-06-21 08:59

reporter   ~0006940

Made ajax file structure changes, but also left backward compatibility with older structure. As an example admin/inc/actions_article.inc.php become admin/actions_article_ajax.php. With this change it is possible to extend existing and register new ajax list files in module metadata.