Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am not an expert #88

Open
TexAafke opened this issue Jul 11, 2024 · 4 comments
Open

I am not an expert #88

TexAafke opened this issue Jul 11, 2024 · 4 comments

Comments

@TexAafke
Copy link

What should I do when this is the error?

Een fout van het type E_ERROR werd veroorzaakt op regelnummer 164 van het bestand /var/www/domains/aafkeprinsen.nl/www/wp-content/themes/suffusion/widgets/suffusion-query-posts.php. Foutmelding: Uncaught Error: Call to undefined function suffusion_get_image() in /var/www/domains/aafkeprinsen.nl/www/wp-content/themes/suffusion/widgets/suffusion-query-posts.php:164
Stack trace:
#0 /var/www/domains/aafkeprinsen.nl/www/wp-includes/class-wp-widget.php(394): Suffusion_Category_Posts->widget(Array, Array)
#1 /var/www/domains/aafkeprinsen.nl/www/wp-includes/widgets.php(2033): WP_Widget->display_callback(Array, Array)
#2 /var/www/domains/aafkeprinsen.nl/www/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget('suf-cat-posts-3', 'sidebar-13')
#3 /var/www/domains/aafkeprinsen.nl/www/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response(Array, Object(WP_REST_Request))
#4 /var/www/domains/aafkeprinsen.nl/www/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Widgets_Controller->get_items(Object(WP_REST_Request))
#5 /var/www/domains/aafkeprinsen.nl/www/wp-includes/rest-api/class-wp-rest-server.

I am just using the theme, not an expert. Thanks

@mbtools
Copy link
Contributor

mbtools commented Jul 11, 2024

Let's start with some details: Which version of WordPress do you have? What's the version of the suffusion theme?

What steps do you take to get the error message?

@TexAafke
Copy link
Author

TexAafke commented Jul 14, 2024 via email

@TexAafke
Copy link
Author

TexAafke commented Jul 14, 2024 via email

@mbtools
Copy link
Contributor

mbtools commented Jul 14, 2024

I'm using the same versions on my site and widgets are working fine.

The function suffusion_get_image() mentioned in the error message certainly exists (in functions/media.php) and that file is required properly by the Suffusion framework. Are you able to check if media.php exists in the theme/functions folder?

You wrote that widgets don't work anymore. So widgets were working before? What has changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants