I am working on a web site on localhost, had the site in version 2.5.28 so decided to upgrade to version 3.6.5. When I upgraded while accessing the site products, I got the following error.
I expected to see the product list on the site.
PHP Fatal error: Call to a member function get() on string in D:\Utilizadores\DELL-Pedro\Desktop\trabalho\loja_vitorino\libraries\src\Helper\ModuleHelper.php on line 229
PHP Fatal error: Call to a member function get() on string in BASEDIR\libraries\src\Helper\ModuleHelper.php on line 225
PHP 5.6.3
JOOMLA 3.9.13
I debugged the error, basically what is happening is that I initialize an instance of a Registry object. When I use the instance to call the get () method, it unlocks the above error.
After doing:
// Get module parameters
$ params = new Registry ($ module-> params);
error_log (json_encode ($ params)); -> give me {}
Hence give the following error, why the new Registry does not return the object to me? why give me the same that new StdClass???
The code presented in this post is from joomla source, I didn't make any changes, just to debug the error.
Can you help me?
Which attachment?
More an bug in google chrome. I dont can do upload attachment
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-12 09:53:11 |
Closed_By | ⇒ | joomdonation | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
This happens with upgrading from Joomla 2.5 to a very old version of Joomla 3. There is no way for us to re-procedure/see the problem on Joomla 4 to confirm or fix it. Therefore, I'm closing this issue.
I find a bug in your tracker report
See attachment
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27453.