Support » Plugin: Salon booking system » PHP version 7

  • Resolved lonelywriter

    (@lonelywriter)



    Hi,

    Has the plugin been tested with PHP version 7? I ask because last week my site was on version 5.6 and I got it working perfectly and syncing with API key from Google for the calendar.

    I did a fresh install and template today but template works better with PHP 7 and having sme bugs with 5.6. I activated your plugin without any problem and I see the form on the Website.

    The problem is for the Google calendar sync. I am logged into Google and the OAuth is still active. I enter the API key and secret key but under that it always shows the message “To get the list of your Google Calendar you need to log-in with Google OAuth. At the moment you are not logged-in.” And simply does not save the information.

    Would this be a PHP version problem? I believe I am doing everything correctly as it was working just a few days ago before my change. Could something else be interfering with your plugin?

    Thank you for your time and I wish you a great day.

Viewing 5 replies - 1 through 5 (of 5 total)
  • PS

    I reverted to PHP 5.6 for a test. I also generated new API keys. Every time I click the “Get Authorization” button it returns to the same page and does not retain any information. Like nothing happened.

    So obviously not a PHP version thing. What else could cause this?

    I forgot to add one last thing that might be important. My site is now https. I did generate new API keys and Web application with new information. However is there a known issue with the plugin and HTTPS?

    Thank you again.

    • This reply was modified 3 months, 2 weeks ago by  lonelywriter.

    OK sorry I realize you have to save information and then get authorization. But after I sign in it gives me the following error:

    Fatal error: Uncaught Error: Call to undefined method Google_Http_REST::createRequestUri() in /wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/src/Google/Service/Resource.php:189 Stack trace: #0 /wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/src/Google/Service/Calendar.php(1137): Google_Service_Resource->call(‘list’, Array, ‘Google_Service_…’) #1 /wp-content/plugins/salon-booking-system/src/SLN/Third/GoogleScope.php(384): Google_Service_Calendar_CalendarList_Resource->listCalendarList() #2 /wp-content/plugins/salon-booking-system/views/settings/tab_gcalendar.php(54): SLN_GoogleScope->get_calendar_list() #3 /wp-content/plugins/salon-booking-system/src/SLN/Admin/SettingTabs/AbstractTab.php(49): include(‘/home3/karras/e…’) #4 /wp-content/plugins/salon-booking-syst in /wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/src/Google/Service/Resource.php on line 189

    Plugin Author salonbooking

    (@wordpresschef)

    Hi,

    do you still have this error?

    Hi,

    After I got it saved I had to switch back to PHP 5.6 to make it work. At PHP 7 it gives this error while authenticating. I tried it a couple times.

    Plugin Author salonbooking

    (@wordpresschef)

    This issue has been fixed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.