conseilgouz / AutoReadMore-J4

Auto Read More for Joomla 4.x/5.x
GNU General Public License v3.0
10 stars 5 forks source link

Call to undefined method stdClass::get() #7

Closed SumCompanyInc closed 9 months ago

SumCompanyInc commented 9 months ago

amazing work - love the plugin, at least the concept.. it doesnt work on a site where we are using sp page builder. not sure if its that, or what. but just thought i've throw this out here in case you wanted to know. i can add more details if you have any more questions.

`

If difficulties persist, please contact the website administrator and report the error below.

0 Call to undefined method stdClass::get()
Call stack

| Function | Location

1 | () | JROOT/plugins/content/autoreadmore/autoreadmore.php:91 2 | PlgContentAutoReadMore->onContentPrepare() | JROOT/libraries/src/Plugin/CMSPlugin.php:289 3 | Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() |   4 | call_user_func() | JROOT/libraries/smartslider3/src/SmartSlider3/Platform/Joomla/JoomlaShim.php:138 5 | Nextend\SmartSlider3\Platform\Joomla\JoomlaShim::triggerOnContentPrepare() | JROOT/libraries/smartslider3/src/SmartSlider3/Slider/Joomla/PlatformSlider.php:28 6 | Nextend\SmartSlider3\Slider\Joomla\PlatformSlider->addCMSFunctions() | JROOT/libraries/smartslider3/src/SmartSlider3/Slider/Base/PlatformSliderTrait.php:22 7 | Nextend\SmartSlider3\Slider\Slider->addCMSFunctions() | JROOT/libraries/smartslider3/src/SmartSlider3/SliderManager/SliderManager.php:109 8 | Nextend\SmartSlider3\SliderManager\SliderManager->render() | JROOT/libraries/smartslider3/src/SmartSlider3/Application/Frontend/Slider/ViewDisplay.php:28 9 | Nextend\SmartSlider3\Application\Frontend\Slider\ViewDisplay->display() | JROOT/libraries/smartslider3/src/SmartSlider3/Application/Frontend/Slider/ControllerSlider.php:18 10 | Nextend\SmartSlider3\Application\Frontend\Slider\ControllerSlider->actionDisplay() |   11 | call_user_func_array() | JROOT/libraries/smartslider3/src/Framework/Controller/AbstractController.php:92 12 | Nextend\Framework\Controller\AbstractController->doAction() | JROOT/libraries/smartslider3/src/Framework/Application/AbstractApplicationType.php:88 13 | Nextend\Framework\Application\AbstractApplicationType->process() | JROOT/libraries/smartslider3/src/SmartSlider3/Platform/Joomla/compat.php:10 14 | nextend_smartslider3() | JROOT/libraries/smartslider3/src/SmartSlider3/Platform/Joomla/Plugin/PluginSmartSlider3.php:148 15 | Nextend\SmartSlider3\Platform\Joomla\Plugin\PluginSmartSlider3::prepare() |   16 | preg_replace_callback() | JROOT/libraries/smartslider3/src/SmartSlider3/Platform/Joomla/Plugin/PluginSmartSlider3.php:73 17 | Nextend\SmartSlider3\Platform\Joomla\Plugin\PluginSmartSlider3->displaySliders() | JROOT/libraries/smartslider3/src/SmartSlider3/Platform/Joomla/Plugin/PluginSmartSlider3.php:102 18 | Nextend\SmartSlider3\Platform\Joomla\Plugin\PluginSmartSlider3->onNextendBeforeCompileHead() | JROOT/libraries/smartslider3/src/SmartSlider3/Platform/Joomla/Plugin/PluginSmartSlider3.php:119 19 | Nextend\SmartSlider3\Platform\Joomla\Plugin\PluginSmartSlider3->onAfterRender() | JROOT/libraries/src/Plugin/CMSPlugin.php:289 20 | Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() | JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486 21 | Joomla\Event\Dispatcher->dispatch() | JROOT/libraries/src/Application/EventAware.php:111 22 | Joomla\CMS\Application\WebApplication->triggerEvent() | JROOT/libraries/src/Application/CMSApplication.php:1031 23 | Joomla\CMS\Application\CMSApplication->render() | JROOT/libraries/src/Application/SiteApplication.php:724 24 | Joomla\CMS\Application\SiteApplication->render() | JROOT/libraries/src/Application/CMSApplication.php:298 25 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/includes/app.php:61 26 | require_once() | JROOT/index.php:32

`

conseilgouz commented 9 months ago

Hi, Thank you for your support. You issue seems to be related to SmartSlider 3. I just download latest version (3.5.1.20) and I can't find the same lines as shown in your log. For example, libraries/smartslider3/src/SmartSlider3/Platform/Joomla/JoomlaShim.php:138 contains } Did you try to update SmartSlider ? Regards, Pascal

conseilgouz commented 9 months ago

Hi again,

I just tried with version 3.5.1.20 and been able to reproduce your issue (with new lines but same modules).

I'll let you know as soon as I find something.

Pascal

conseilgouz commented 9 months ago

Instead of being a Registry class, $params is an empty object in SmartSlider 3 causing this issue. AutoReadMore has been updated to handle this in version 5.1.3.

SumCompanyInc commented 9 months ago

wow! amazing! it works! thank you!