Page 1 of 1
Index .php error
Posted: Sat May 13, 2023 1:16 pm
by radhavallabh
Hi;
Using 1.0.8.20 and php7.4 ....I am getting this error on index.php.
To check I uninstalled all index modular modules but error still shows...
Can you help me understand the issue please.....
Fatal error
: Uncaught Error: Call to a member function get() on null in /xx/xx/includes/modules/pi/product_info/pi_gallery.php:36 Stack trace: #0 /xx/xx/includes/modules/content/index/cm_i_modular.php(42): pi_gallery->getOutput() #1 /xx/xx/includes/system/override/slim_checkout/template.php(114): cm_i_modular->execute() #2 /xx/xx/templates/override/includes/pages/index.php(44): Template->get_content('index') #3 /xx/xx/index.php(17): require('/xx/xx
Help shall be deeply appreciated;
Thank you in advance;
Warm Regds./
radhavallabh
Re: Index .php error
Posted: Sat May 13, 2023 2:47 pm
by ecartz
Re: Index .php error
Posted: Sun May 14, 2023 6:39 am
by radhavallabh
Hi I made all changes;
Still more error persists....
Uninstalled all product-info layout modules,
I try installing the content -product info -gallery module it is not showing the edit or remove buttons; Also it does not display anything on catalog side now.
Then After i uninstall pi-gallery on re-install
---it is not showing the edit or remove buttons,
---even that has stopped displaying on the catalog,
---I also get a new below error on admin side-
Undefined index: page in
/xx/xx/admin/includes/modules/cfg_modules/cfgm_layout.php
Regds./
radhavallabh
Re: Index .php error
Posted: Sun May 14, 2023 9:58 am
by 14Steve14
I had something similar happen to me when I uploaded and tried to install an older module from an earlier version by mistake. In the end I had uninstall all the PI modules, and then check in the database configuration table for a configuation key called MODULE_CONTENT_PI_INSTALLED and make sure that there was nothing installed. If there was any entries there then delete them but leave the table entry there.
Also in the modules - content area in admin make sure you have uninstalled the 'π Modular Index' module as that caused me problems.
Then I overwrote all the product info PI modules from a known good copy and only uploaded the ones supplied from core. I uploaded them one at a time making sure that they all worked as they should. Once I had all of those working properly I adjusted the page layout to how I wanted it. I then started uploading all the extra ones I was using until I found the one that was causing the trouble. An older version of something that needed a small update so it would work.
It took a long time to sort but starting from the beginning with good known code worked.
Re: Index .php error
Posted: Sun May 14, 2023 12:55 pm
by radhavallabh
Hi;
Thanx for the tip dear;
Meanwhile I did this for now-
I reverted all changes made related to 1.0.8.21 as per thread.
Uninstalled 'π Modular Index'
Reinstalled PI modules for product info.
And works normally now.
Have recreated my index layout module as content index modules and is working...
Just will not be able to use the layout format on index page.
Will wait until we can get this issue fixed by the help of dear @ecartz ....
Thank you again
Very Warm Regds./
radhavallabh