PHP Warning: call_user_func() expects parameter 1 to be a valid callback

chinas
19 Posts
chinas posted this 22 October 2020

Hi

This is the error,

Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /sata2/home/users/qdoors/www/www.qdoors.com.ua/templates/qdoors_new/html/modules.php on line 57

It comes from a file of your template.

More specifically is that code:

call_user_func($styles[$style], $module, $params, $attribs);

Seems like your $styles var is empty.

From log:

[Thu Oct 22 15:51:22 2020] [warn] [client 88.81.226.126] mod_fcgid: stderr: PHP Warning:  call_user_func() expects parameter 1 to be a valid callback, no array or string given in /sata2/home/users/qdoors/www/www.qdoors.com.ua/templates/qdoors_new/html/modules.php on line 57, referer: https://www.qdoors.com.ua/index.php/produktsiya-vm

Hi This is the error, Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /sata2/home/users/qdoors/www/www.qdoors.com.ua/templates/qdoors_new/html/modules.php on line 57 It comes from a file of your template. More specifically is that code: call_user_func($styles[$style], $module, $params, $attribs); Seems like your $styles var is empty. From log: [Thu Oct 22 15:51:22 2020] [warn] [client 88.81.226.126] mod_fcgid: stderr: PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /sata2/home/users/qdoors/www/www.qdoors.com.ua/templates/qdoors_new/html/modules.php on line 57, referer: https://www.qdoors.com.ua/index.php/produktsiya-vm

Last edited 22 October 2020 by chinas

Vote to pay developers attention to this features or issue.
11 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 23 October 2020

Hello Yurii,

Please, try re-exporting the theme from Themler desktop and reinstall.

Gina
Themler support

Hello Yurii, Please, try re-exporting the theme from Themler desktop and reinstall. Gina Themler support
chinas
19 Posts
chinas posted this 24 October 2020

I followed your recommendation, but it didn't help.
I can give you administrative rights to the site

Attached template.

I followed your recommendation, but it didn't help. I can give you administrative rights to the site Attached template.

Last edited 26 October 2020 by chinas

Support Team
Support Team posted this 26 October 2020

Your theme is version 499, I have exported from version 517 and attached. Could you please test it?

Gina
Themler Support

Your theme is version 499, I have exported from version 517 and attached. Could you please test it? Gina Themler Support
chinas
19 Posts
chinas posted this 26 October 2020

I installed the template you suggested. It didn't help, I get the same error.

I installed the template you suggested. It didn't help, I get the same error.
Support Team
Support Team posted this 27 October 2020

This issue is forwarded to the developers. Meanwhile, you can try this:

1) Disable PHP warnings in Joomla. They are not affecting any functionality (if we are talking about warnings, not errors; in your case it is a warning),

2) Try changing that line of code to call_user_func(array($styles[$style], $module, $params, $attribs));
But please make sure you make the backup of the correct file so in case of an error, you could replace that file on the server.

Gina
Themler support

This issue is forwarded to the developers. Meanwhile, you can try this: 1) Disable PHP warnings in Joomla. They are not affecting any functionality (if we are talking about warnings, not errors; in your case it is a warning), 2) Try changing that line of code to `call_user_func(array($styles[$style], $module, $params, $attribs));` But please make sure you make the backup of the correct file so in case of an error, you could replace that file on the server. Gina Themler support
chinas
19 Posts
chinas posted this 5 weeks ago

  1. I cannot ignore the error. Due to an error, part of the site's functionality does not work.
  2. I tried to replace the code snippet. It got worse, all modules were no longer displayed.

I can send a backup of the WEB-site, if necessary.

1. I cannot ignore the error. Due to an error, part of the site's functionality does not work. 2. I tried to replace the code snippet. It got worse, all modules were no longer displayed. I can send a backup of the WEB-site, if necessary.

Last edited 5 weeks ago by chinas

Support Team
Support Team posted this 5 weeks ago

Could you please describe what functionality doesn't work?

Gina
Themler Support

Could you please describe what functionality doesn't work? Gina Themler Support
chinas
19 Posts
chinas posted this 4 weeks ago

Module "Custom Filters" (https://extensions.joomla.org/extension/custom-filters-pro/) for VirtueMart does not work. When trying to filter a product by the selected parameters, the error mentioned above occurs and the display of the module disappears.
The module works with other templates without problems.
https://demo.breakdesigns.net/index.php/search/screens/

Module "Custom Filters" (https://extensions.joomla.org/extension/custom-filters-pro/) for VirtueMart does not work. When trying to filter a product by the selected parameters, the error mentioned above occurs and the display of the module disappears. The module works with other templates without problems. https://demo.breakdesigns.net/index.php/search/screens/

Last edited 4 weeks ago by chinas

Support Team
Support Team posted this 4 weeks ago

Unfortunately, I can't fix incompatibility with 3rd party plugins.
I will forward this issue to the developers.

Gina
Themler support

Unfortunately, I can't fix incompatibility with 3rd party plugins. I will forward this issue to the developers. Gina Themler support
chinas
19 Posts
chinas posted this 4 weeks ago

Let me know how the results will be from the developers.

Let me know how the results will be from the developers.
chinas
19 Posts
chinas posted this yesterday

Can you recommend a module for filtering products by custom fields that will be compatible with your template?

Can you recommend a module for filtering products by custom fields that will be compatible with your template?
You must log in or register to leave comments