better-studio / better-amp

Full Google AMP support for WordPress with custom themes and customizations
https://betterstudio.com/wp-plugins/better-amp/
GNU General Public License v2.0
19 stars 19 forks source link

Fatal Error #34

Closed motwguy closed 6 years ago

motwguy commented 7 years ago

I (and several others) are getting this message:

Fatal error: Call to undefined function bf_social_share_guss_current_page() in /home/motwguy/marketing-ontheweb.com/wp-content/plugins/better-amp/includes/functions/theme-functions.php on line 2469

I have systematically deactivated all my plug-ins to no avail.

also see: https://wordpress.org/support/topic/fatal-error-2583/

galbaras commented 7 years ago

In includes/functions/theme-functions.php, line 2469 should be changed from

$current_page = bf_social_share_guss_current_page();

to

$current_page = better_amp_social_share_guss_current_page();

Line 2476 should also be changed from:

count_number = bf_social_share_fetch_count( $site_id, $current_page['page_permalink'] );

to

$count_number = better_amp_social_share_fetch_count( $site_id, $current_page['page_permalink'] );

motwguy commented 7 years ago

Thank you. Will this be corrected in the next update?

aliaghdam commented 6 years ago

@galbaras Thanks for information and help.

@motwguy Yes this will be included in coming update ;)