Plugin Contributor
threadi
(@threadi)
Hey,
thanks a lot for your question. It’s a pity that you have to go through this experience.
Unfortunately, the problem is not understandable for me. Firstly, the theme you are using is a commercial theme, which is not available for testing. Secondly, it doesn’t happen with any other theme I’ve tested (and there are quite a few).
So I would be grateful if you could give some more information to analyze the error you encountered:
What version of WordPress are you using?
Which PHP version are you using?
Which shortcode did you use exactly? Here you can find the instructions for the setup: https://github.com/threadi/wp-personio-integration-light/blob/master/doc/shortcodes.md
At what moment exactly does the error occur? When you open the page with the shortcode in the customizer? But in the frontend everything works?
Also it would be good if you could have a look at the error log of your hosting. There you should be able to find the exact cause of the error. The support of your hoster can help you if necessary. If you can’t find the error log, you can also temporarily enable debugging in WordPress as described here:
As soon as I have a feedback from you, I could have a look at the case.
Hi @threadi ,
thanks for the quick reply. Here you go:
WP 6.1.1
PHP 8.1.13
Shortcode:
[personioPositions lang="de" showfilter="1" filter="office,department" filtertype="selectbox" templates="title,excerpt,formular" excerpt="recruitingCategory,office" sort="asc" sortby="title"]
Here’s an excerpt from the debug log that seems to be related:
[27-Jan-2023 17:23:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined method personioIntegration\PositionWidget::createWidgetFieldOutput() in /www/XXX/wp-content/plugins/personio-integration-light/classes/class-positionwidget.php:110
Stack trace:
#0 /www/XXX/wp-includes/class-wp-widget.php(535): personioIntegration\PositionWidget->form(Array)
#1 /www/XXX/wp-admin/includes/widgets.php(274): WP_Widget->form_callback(Array)
#2 /www/XXX/wp-includes/class-wp-customize-widgets.php(1128): wp_widget_control(Array, Array)
#3 /www/XXX/wp-includes/class-wp-customize-widgets.php(1076): WP_Customize_Widgets->get_widget_control(Array)
#4 /www/XXX/wp-includes/class-wp-customize-widgets.php(714): WP_Customize_Widgets->get_available_widgets()
#5 /www/XXX/wp-includes/class-wp-hook.php(308): WP_Customize_Widgets->enqueue_scripts('')
#6 /www/XXX/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#7 /www/XXX/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /www/XXX/wp-admin/customize.php(123): do_action('customize_contr...')
#9 {main}
thrown in /www/XXX/wp-content/plugins/personio-integration-light/classes/class-positionwidget.php on line 110
Plugin Contributor
threadi
(@threadi)
Thanks for the info. I was able to reproduce and fix the problem. It’s related to the classic widgets that your theme seems to be using.
I’ve provided you with a corrected version here:
https://laolaweb.com/wp-content/uploads/lw-plugins/202301271801_personio-integration-light_2.0.1.zip
You would need to download the ZIP and upload it in your backend under Plugins > Add New > Upload Plugin. When asked, overwrite the already existing version of the plugin. After that, the customizer should work flawlessly.
If this works from your perspective, I would release this to all users early next week.
Thanks for the tip again 🙂
That did the trick! Thank you very much.
Plugin Contributor
threadi
(@threadi)
Thanks for the feedback. I am glad that it works. If you have any further questions, please contact me again.