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

chinas
20 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.
13 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
20 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
20 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
20 Posts
chinas posted this 27 October 2020

  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 27 October 2020 by chinas

Support Team
Support Team posted this 28 October 2020

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
20 Posts
chinas posted this 29 October 2020

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 29 October 2020 by chinas

Support Team
Support Team posted this 30 October 2020

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
20 Posts
chinas posted this 04 November 2020

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

Let me know how the results will be from the developers.
chinas
20 Posts
chinas posted this 26 November 2020

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?
chinas
20 Posts
chinas posted this 03 December 2020

I have already tried several different product filters from different manufacturers. They all have the same compatibility issue with your templates. The same error is always returned.
I can provide all the necessary access to my WEB-site.

I have already tried several different product filters from different manufacturers. They all have the same compatibility issue with your templates. The same error is always returned. I can provide all the necessary access to my WEB-site.
dougpetersensei
3 Posts
dougpetersensei posted this 01 September 2023

The error message you're encountering, "PHP Warning: call_user_func() expects parameter 1 to be a valid callback," suggests that there's an issue with the callback function being passed in your code. Specifically, the $styles variable seems to be empty, resulting in the error. To resolve this, ensure that the $styles variable is properly initialized with valid callback functions. If you're looking to train for a career in hotel administration, addressing and debugging such technical challenges can be valuable in enhancing your problem-solving skills, which are essential in managing various aspects of a hotel's operations.

download Paint By Number - Coloring Book & Color by Number - v2.66.2 on Games.lol

The error message you're encountering, "PHP Warning: call_user_func() expects parameter 1 to be a valid callback," suggests that there's an issue with the callback function being passed in your code. Specifically, the $styles variable seems to be empty, resulting in the error. To resolve this, ensure that the $styles variable is properly initialized with valid callback functions. If you're looking [to train for a career in hotel administration][1], addressing and debugging such technical challenges can be valuable in enhancing your problem-solving skills, which are essential in managing various aspects of a hotel's operations. [download Paint By Number - Coloring Book & Color by Number - v2.66.2 on Games.lol][2] [1]: https://answersrepublic.com/education/how-to-become-a-hotel-manager/ [2]: https://games.lol/paint-by-number-coloring-book-color-by-number/
You must log in or register to leave comments