Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor"
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor"

[FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor" 3 years, 3 months ago #37061

When I made the Sj Market II - Creative eCommerce Joomla Responsive Template" download, I receive an error and, because this, my Admin Painel was blocked.

The solution is: change the function declaration in line 15 and delete the line bellow of this function. The result will be:
function __construct(&$subject, $pluginconfig) {
	$this->_resources = dirname(__FILE__).'/x_menu_params/xml/';
}


The file to change is: /public_html/yoursite/plugins/system/x_menu_params/x_menu_params.php

Then, update your Joomla version to the last one.

Regards,

Re: [FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor" 3 years, 3 months ago #37071

Dear ariadnepinheiro

Thanks for your solution.

thanks

Re: [FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor" 3 years, 2 months ago #37157

Hi,
I update my joomla to 3.8.12 and try your solution, but i still faced with that problem!
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgSystemX_Menu_Params has a deprecated constructor in www\---\plugins\system\x_menu_params\x_menu_params.php on line 15
Call Stack
#	Time	Memory	Function	Location
1	0.0010	372648	{main}( )	...\index.php:0
2	0.2291	6114856	Joomla\CMS\Application\CMSApplication->execute( )	...\index.php:51
3	0.2291	6114856	Joomla\CMS\Application\AdministratorApplication->doExecute( )	...\CMSApplication.php:195
4	0.2292	6115264	Joomla\CMS\Application\AdministratorApplication->initialiseApp( )	...\AdministratorApplication.php:123
5	0.2472	6539160	Joomla\CMS\Application\CMSApplication->initialiseApp( )	...\AdministratorApplication.php:301
6	0.2785	7371872	Joomla\CMS\Plugin\PluginHelper::importPlugin( )	...\CMSApplication.php:622
7	0.2903	7660248	Joomla\CMS\Plugin\PluginHelper::import( )	...\PluginHelper.php:182

and also this error:
 Cannot use object of type stdClass as array 


Any help would be appreciate
Thanks in advance
Regards

Re: [FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor" 3 years, 2 months ago #37170

Dear diacotm,
fix error Cannot use object of type stdClass as array . update plugin link:
dev.ytcvn.com/pkdownload/x_menu_params.zip
Thanks

Re: [FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor" 2 years, 5 months ago #39074

Hello,
I'm facing this issue. I can't download your zip file. Can you reupload it ?
This exactly same pb. I can't edit or create menu item.
Thank you

Re: [FIX BUG] "plgSystemX_Menu_Params has a deprecated constructor" 2 years, 4 months ago #39109

Dear Nohud

please go to plugins/system/x_menu_params/x_menu_params.php,
plugins/system/helix3/helix3.php and find:

if($data['id'] && $data['parent_id'] == 1) {

=> change to:

if (is_object($data))
{ $data = (array)$data; }
if($data['id'] && $data['parent_id'] == 1) {

thanks
  • Page:
  • 1
Time to create page: 0.45 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

(/)
Result not found!

Black Friday Sale

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes