moritzbappert / wpgiftregistry

GNU General Public License v2.0
3 stars 5 forks source link

Compability with wordpress 6.0.1 #16

Open jorblad opened 2 years ago

jorblad commented 2 years ago

When trying to use the plugin in wordpress 6.0.1 I get lots of warnings in the admin area.

Warning: Trying to access array offset on value of type bool in /srv/users/wedding/apps/wedding/public/wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php on line 330

Warning: Trying to access array offset on value of type bool in /srv/users/wedding/apps/wedding/public/wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php on line 331

Warning: Trying to access array offset on value of type bool in /srv/users/wedding/apps/wedding/public/wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php on line 876

Warning: Trying to access array offset on value of type bool in /srv/users/wedding/apps/wedding/public/wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php on line 877

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/wedding/apps/wedding/public/wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php:330) in /srv/users/wedding/apps/wedding/public/wp-includes/pluggable.php on line 1421

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/wedding/apps/wedding/public/wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php:330) in /srv/users/wedding/apps/wedding/public/wp-includes/pluggable.php on line 1424

jorblad commented 2 years ago

Those messages also interfere with elementor so that I cant easily save my page, it also shows the message

Warning: Undefined array key "split_gift_hide_total_price" in /srv/users/wedding/apps/wedding/public/wp-content/plugins/wpgiftregistry/templates/wishlist--single.php on line 42 on the webpage when i finally could save it by a workaround.

jorblad commented 2 years ago

Seems that when I hardcoded currency and if it should be before or after it seems to work so that should give some help in where the problem can be.

murphy83 commented 1 week ago

Hi there, I also ran into these issues... As it seems the company of the owner is in the state of liquidation and will soon become delisted as a company.

I therefore forked the repository and started to implement the fixes to get the plugin running with Wordpress 6. I also removed some parts that were used to create revenue to the owner by replacing the links you enter with affiliate links ... (without mentioning it clearly in the description).

As support is unclear and the plugin also has some open issues on the wordpress plugin website, I will start to take care of the plugin.

I already tried to contact the company via e-mail about a week ago, but no reply yet.