Options Images

Uncaught Error: Call to a member function data_seek() on nul - Options Images

Uncaught Error: Call to a member function data_seek() on nul

by artfulweb » Sun Apr 06, 2025 9:36 am

Sorry Rainer,
I have another problem that crops up in Products Attributes Values only when trying to delete an option (Phoenix 1.1.0.1), causing the accordion to reclose then becomes inert so can not access it again:

PHP Fatal error: Uncaught Error: Call to a member function data_seek() on null in /xx/xx/xx/catalog/includes/hooks/admin/products_attributes/OptImages.php:226
Stack trace:
#0 /xx/xx/xx/catalog/includes/system/versioned/1.0.8.1/hooks.php(150): hook_admin_products_attributes_OptImages->listen_injectSiteEnd()
#1 /xx/xx/xx/catalog/admin/includes/template_bottom.php(21): hooks->cat()
#2 /xx/xx/xx/catalog/admin/products_attributes.php(635): require('/xx/xx/d...')
#3 {main}
thrown in /xx/xx/xx/catalog/includes/hooks/admin/products_attributes/OptImages.php on line 226
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Contact:

Re: Uncaught Error: Call to a member function data_seek() on

by raiwa » Sun Apr 06, 2025 1:23 pm

Please try with this modified hook:
includes\hooks\admin\products_attributes\OptImages.php
OptImages.zip
(2.66 KiB) Downloaded 39 times
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: Uncaught Error: Call to a member function data_seek() on

by artfulweb » Sun Apr 06, 2025 3:45 pm

Thank you! That did it. You are the best !!
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Contact: