-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[YF7.0.2] module import issues #70
Comments
Additionally, if I import an update package by Module Manager, the import process ends with an error this happens for both YF7.0.1 and YF7.0.2 (anyway the update goes well) NB the importer is trying to delete the package zip file, which most likely has already been deleted the system.log 2024-12-09 20:50:48.0252 [error][] - vtlib\Deprecated::checkFileAccessForDeletion(cache/usermodule_1733773846.zip) - Sorry! Attempt to access restricted file. realfilepath:
|
I solved this problem by analyzing the update packages of YF7.0.1 and YF7.0.2. I leave this information for any YetiForce developer who might be interested. the
just a note for @rskrzypczak
I close this issue. |
Try to export a custom module (just the one attached, My Symple Module) from a YF7.0.2 instance and import to another YF7.0.2 instance ...
it issues a system error
My Symple Module
MySimpleModule.zip
system.log
2024-12-09 15:30:40.0343 [error][] - SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
dev_yf_7_0_XX
.a_yf_module_reference
, CONSTRAINTfk_module_relations_entityname
FOREIGN KEY (module_id
) REFERENCESvtiger_entityname
(tabid
) ON DELETE CASCADE)The SQL being executed was: INSERT INTO
a_yf_module_reference
(module_id
,ref_table
,ref_column
,sort
,is_custom_field_table
) VALUES (142, 'vtiger_crmentity', 'crmid', 1, 0)PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
dev_yf_7_0_XX
.a_yf_module_reference
, CONSTRAINTfk_module_relations_entityname
FOREIGN KEY (module_id
) REFERENCESvtiger_entityname
(tabid
) ON DELETE CASCADE) in /var/www/html/development/yf_7.0/XX/vendor/yetiforce/yii2/db/Command.php:1302Stack trace:
#0 /var/www/html/development/yf_7.0/XX/vendor/yetiforce/yii2/db/Command.php(1302): PDOStatement->execute()
#1 /var/www/html/development/yf_7.0/XX/vendor/yetiforce/yii2/db/Command.php(1102): yii\db\Command->internalExecute()
#2 /var/www/html/development/yf_7.0/XX/vtlib/Vtiger/PackageImport.php(729): yii\db\Command->execute()
#3 /var/www/html/development/yf_7.0/XX/vtlib/Vtiger/PackageImport.php(653): vtlib\PackageImport->importEntityModuleReferences()
#4 /var/www/html/development/yf_7.0/XX/vtlib/Vtiger/PackageImport.php(606): vtlib\PackageImport->importModule()
#5 /var/www/html/development/yf_7.0/XX/modules/Settings/ModuleManager/views/ModuleImport.php(151): vtlib\PackageImport->import()
#6 /var/www/html/development/yf_7.0/XX/app/Controller/ExposeMethod.php(68): Settings_ModuleManager_ModuleImport_View->importUserModuleStep3()
#7 /var/www/html/development/yf_7.0/XX/modules/Settings/ModuleManager/views/ModuleImport.php(45): Settings_ModuleManager_ModuleImport_View->invokeExposedMethod()
#8 /var/www/html/development/yf_7.0/XX/include/main/WebUI.php(161): Settings_ModuleManager_ModuleImport_View->process()
#9 /var/www/html/development/yf_7.0/XX/index.php(26): Vtiger_WebUI->process()
#10 /var/www/html/development/yf_7.0/XX/public_html/index.php(13): require('...')
#11 {main}
Next yii\db\IntegrityException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
dev_yf_7_0_XX
.a_yf_module_reference
, CONSTRAINTfk_module_relations_entityname
FOREIGN KEY (module_id
) REFERENCESvtiger_entityname
(tabid
) ON DELETE CASCADE)The SQL being executed was: INSERT INTO
a_yf_module_reference
(module_id
,ref_table
,ref_column
,sort
,is_custom_field_table
) VALUES (142, 'vtiger_crmentity', 'crmid', 1, 0) in /var/www/html/development/yf_7.0/XX/vendor/yetiforce/yii2/db/Schema.php:676Stack trace:
#0 /var/www/html/development/yf_7.0/XX/vendor/yetiforce/yii2/db/Command.php(1307): yii\db\Schema->convertException()
#1 /var/www/html/development/yf_7.0/XX/vendor/yetiforce/yii2/db/Command.php(1102): yii\db\Command->internalExecute()
#2 /var/www/html/development/yf_7.0/XX/vtlib/Vtiger/PackageImport.php(729): yii\db\Command->execute()
#3 /var/www/html/development/yf_7.0/XX/vtlib/Vtiger/PackageImport.php(653): vtlib\PackageImport->importEntityModuleReferences()
#4 /var/www/html/development/yf_7.0/XX/vtlib/Vtiger/PackageImport.php(606): vtlib\PackageImport->importModule()
#5 /var/www/html/development/yf_7.0/XX/modules/Settings/ModuleManager/views/ModuleImport.php(151): vtlib\PackageImport->import()
#6 /var/www/html/development/yf_7.0/XX/app/Controller/ExposeMethod.php(68): Settings_ModuleManager_ModuleImport_View->importUserModuleStep3()
#7 /var/www/html/development/yf_7.0/XX/modules/Settings/ModuleManager/views/ModuleImport.php(45): Settings_ModuleManager_ModuleImport_View->invokeExposedMethod()
#8 /var/www/html/development/yf_7.0/XX/include/main/WebUI.php(161): Settings_ModuleManager_ModuleImport_View->process()
#9 /var/www/html/development/yf_7.0/XX/index.php(26): Vtiger_WebUI->process()
#10 /var/www/html/development/yf_7.0/XX/public_html/index.php(13): require('...')
#11 {main}
Additional Information:
Array
(
[0] => 23000
[1] => 1452
[2] => Cannot add or update a child row: a foreign key constraint fails (
dev_yf_7_0_XX
.a_yf_module_reference
, CONSTRAINTfk_module_relations_entityname
FOREIGN KEY (module_id
) REFERENCESvtiger_entityname
(tabid
) ON DELETE CASCADE))
2024-12-09 15:30:39.8643 [info][[application]] -
$_POST = ['_csrf'=>'sid:616e0f5f6d79d2b41416019c4582e94ee20a4de6,1733754638','module'=>'ModuleManager','parent'=>'Settings','view'=>'ModuleImport','module_import_file'=>'usermodule_1733754638.zip','module_import_type'=>'inventory','module_import_name'=>'MySimpleModule','mode'=>'importUserModuleStep3']
$_COOKIE = ['YTSID'=>'r208qoro6fdeo4s1gt3i5gcnqf']
$_SESSION = ['CSP_TOKEN'=>'421c509b6363096555ff5afe2c0d1bf8c8a832959692ca2bc0705a34241fea64','last_activity'=>1733754639.864678,'fingerprint'=>'2750bc42-702e-4cbe-bae5-798f171389e1','user_agent'=>'Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0','UserAuthMethod'=>'PASSWORD','app_unique_key'=>'K7XD5HxtmEc5RvmuBmiv2d0tyuFVnsgcXTMEilfZ','user_name'=>'davide','full_user_name'=>'Alghi Davide','authenticated_user_id'=>1,'DashBoard'=>['Home'=>['LastDashBoardId'=>1]],'language'=>'en-US']
_HEADERS = ['Host'=>'www.yeticrmxx70.com','Te'=>'trailers','Priority'=>'u=0, i','Sec-Fetch-User'=>'?1','Sec-Fetch-Site'=>'same-origin','Sec-Fetch-Mode'=>'navigate','Sec-Fetch-Dest'=>'document','Upgrade-Insecure-Requests'=>'1','Cookie'=>'YTSID=r208qoro6fdeo4s1gt3i5gcnqf','Origin'=>'null','Content-Length'=>'255','Content-Type'=>'application/x-www-form-urlencoded','Accept-Encoding'=>'gzip, deflate, br, zstd','Accept-Language'=>'it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3','Accept'=>'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,/;q=0.8','User-Agent'=>'Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0','Authorization'=>'']
$stability = ['output_buffering'=>'1']
$security = ['disable_functions'=>'']
$libraries = ['pdo_sqlsrv'=>'LBL_NO','mongodb'=>'LBL_NO']
$performance = ['opcache.save_comments'=>'1']
$environment = ['open_basedir'=>false]
$functionalVerification = ['branding'=>'No']
The text was updated successfully, but these errors were encountered: