raiwa wrote: ↑Sun Mar 12, 2023 4:20 pm
Glitch with layout modules:
new 1.0.8.21 installation: only exists: MODULE_CONTENT_PI_INSTALLED in db configuration, MODULE_LAYOUT_INSTALLED doesn't exist.
MODULE_CONTENT_PI_INSTALLED shows:
Code: Select all
pi_gallery.php;pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php
When I edit pi gallery module: appears: MODULE_LAYOUT_INSTALLED in db configuration
Code: Select all
pi_gallery.php;pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php
When I uninstall pi gallery:
MODULE_CONTENT_PI_INSTALLED shows:
Code: Select all
pi_gallery.php;pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php
which is wrong, pi_gallery.php; is uninstalled. But everything works like expected
MODULE_LAYOUT_INSTALLED shows:
Code: Select all
pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php
When I install again pi gallery:
MODULE_CONTENT_PI_INSTALLED shows:
Code: Select all
pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php;pi_gallery.php
MODULE_LAYOUT_INSTALLED shows:
Code: Select all
pi_gallery.php;pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php
admin\includes\modules\cfg_modules\cfgm_layout.php includes support for the modularized contact_us and index pages. But when I add the modularized contact_us package from this thread:
viewtopic.php?f=28&t=1382
and I install the form contact us layout module, I get the following:
MODULE_LAYOUT_INSTALLED shows:
Code: Select all
cu_form.php;pi_gallery.php;pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php
MODULE_CONTENT_CU_INSTALLED shows:
Code: Select all
pi_gallery.php;pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php;cu_form.php
including all product_info modules, which is wrong and produces the following error on the contact_us page because it tries to load product_info modules:
Code: Select all
Fatal error
: Uncaught Error: Call to a member function get() on null in C:\xampp_8.0_new\htdocs\Phoenix_1.0.8.21_beta\includes\modules\pi\product_info\pi_gallery.php:35 Stack trace: #0 C:\xampp_8.0_new\htdocs\Phoenix_1.0.8.21_beta\includes\modules\content\contact_us\cm_cu_modular.php(44): pi_gallery->getOutput() #1 [internal function]: cm_cu_modular->{closure}(Object(pi_gallery), 0) #2 C:\xampp_8.0_new\htdocs\Phoenix_1.0.8.21_beta\includes\modules\content\contact_us\cm_cu_modular.php(44): array_walk(Array, Object(Closure)) #3 C:\xampp_8.0_new\htdocs\Phoenix_1.0.8.21_beta\includes\system\versioned\1.0.8.4\template.php(106): cm_cu_modular->execute() #4 C:\xampp_8.0_new\htdocs\Phoenix_1.0.8.21_beta\templates\override\includes\pages\contact_us.php(28): Template->get_content('contact_us') #5 C:\xampp_8.0_new\htdocs\Phoenix_1.0.8.21_beta\contact_us.php(54): require('C:\\xampp_8.0_ne...') #6 {main} thrown in
C:\xampp_8.0_new\htdocs\Phoenix_1.0.8.21_beta\includes\modules\pi\product_info\pi_gallery.php
on line
35
The same happens when I install then the layout product info model "Model".
I get the contact us module added to MODULE_CONTENT_PI_INSTALLED:
Code: Select all
cu_form.php;pi_gallery.php;pi_img_disclaimer.php;pi_options_attributes.php;pi_buy_button.php;pi_model.php
and the correspondent error on the product info page.