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

Bug in class.button-shortcode.php #192

Closed
dghweb opened this issue Jun 23, 2023 · 5 comments
Closed

Bug in class.button-shortcode.php #192

dghweb opened this issue Jun 23, 2023 · 5 comments

Comments

@dghweb
Copy link

dghweb commented Jun 23, 2023

Hi,
There's a bug in file setup\class.button-shortcode.php on line 53

The parameters in the implode call are in the wrong order.

$class_string = implode($classes, ' ');
should be
$class_string = implode(' ', $classes);

This can cause a Fatal Error like this:

Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /nfs/bronfs/uwfs/hw00/d59/globalwach/wordpress/wp-content/themes/uw-2014/setup/class.button-shortcode.php:53

Thanks,
Jasper Bleijs
Dept. of Global Health

@dghweb
Copy link
Author

dghweb commented Apr 16, 2024

Hi @lcaple ,
Bumping this issue as UW-IT has upgraded PHP (per 4/16/2024) on the departmental webservers, and websites running the 2014 theme and using the button shortcode now throw a Fatal error.

Thanks,
Jasper Bleijs
Dept. of Global Health

@twentzel
Copy link

twentzel commented Apr 16, 2024 via email

@lcaple
Copy link
Contributor

lcaple commented Apr 16, 2024

Hi @lcaple , Bumping this issue as UW-IT has upgraded PHP (per 4/16/2024) on the departmental webservers, and websites running the 2014 theme and using the button shortcode now throw a Fatal error.

Thanks, Jasper Bleijs Dept. of Global Health

@dghweb
This was fixed back in July. . Pull down the latest version of the master branch for this fix.

@lcaple
Copy link
Contributor

lcaple commented Apr 16, 2024

Adding on to this as well. http://www.globalmedicines.org/ Fatal error: Array and string offset access syntax with curly braces is no longer supported in /nfs/bronfs/uwfs/hw00/d96/globalrx/wordpress/wp-content/plugins/shortcodes-ultimate/includes/deprecated/functions.php on line 130

@twentzel , based on your error message this is an issue with the plugin shortcodes-ultimate and not the uw-2014 theme.

@dghweb
Copy link
Author

dghweb commented Apr 16, 2024

Hi @lcaple , Bumping this issue as UW-IT has upgraded PHP (per 4/16/2024) on the departmental webservers, and websites running the 2014 theme and using the button shortcode now throw a Fatal error.
Thanks, Jasper Bleijs Dept. of Global Health
@dghweb
This was fixed back in July. . Pull down the latest version of the master branch for this fix.

Thank you. I missed that. My apologies.

@dghweb dghweb closed this as completed Apr 17, 2024
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

3 participants