Support » Plugin: Image and video gallery from Google Drive » Changing Advanced Option settings

  • Resolved computingforall

    (@computingforall)


    Hello,
    Thank you for this excellent plugin. It is working great. I have an issue regarding using the “Advanced options”. When I change any of the options on the Advanced Options page and try to save it, I receive the following message.

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    There was no admin email.

    I was trying to find out the database table where the settings are saved. I could not figure out the which table has the information.

    Would you kindly let me know where the Advanced Option settings are saved, so that I can directly modify the values?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marek Dědič

    (@marekdedic)

    Hi,
    I can’t replicate this issue – could you please turn on WP debugging and try again?

    Anyway, the settings are in the options table with the sgdg prefix.

    Thread Starter computingforall

    (@computingforall)

    Hello,
    Thank you so much for the help. I enabled the debug mode.

    The debug errors are mostly the followings. I am not sure what they are.

    —————————
    PHP Notice: Trying to get property ‘time’ of non-object in wp-content/plugins/skaut-google-drive-gallery/frontend/class-api-fields.php on line 109

    PHP Notice: Undefined index: timestamp in wp-content/plugins/skaut-google-drive-gallery/frontend/page.php on line 372

    PHP Fatal error:  Uncaught Error: Call to undefined function Sgdg\Frontend\ctype_digit() in wp-content/plugins/skaut-google-drive-gallery/frontend/class-bounded-integer-option.php:52
    Stack trace:
    #0 wp-includes/class-wp-hook.php(305): Sgdg\Frontend\Bounded_Integer_Option->sanitize('250')
    #1 wp-includes/plugin.php(189): WP_Hook->apply_filters('250', Array)
    #2 wp-includes/formatting.php(4907): apply_filters('sanitize_option...', '250', 'sgdg_grid_heigh...', '250')
    #3 wp-includes/option.php(415): sanitize_option('sgdg_grid_heigh...', '250')
    #4 wp-admin/ in wp-content/plugins/skaut-google-drive-gallery/frontend/class-bounded-integer-option.php on line 52

    —————————

    In the options table I found the following fields with sgdg_ as prefix. I am not sure which one is related to the settings. Or, should there be more fields with the sgdg prefix?

    Thank you very much for the help.

    Thread Starter computingforall

    (@computingforall)

    I forgot to paste the fields with sgdg prefix in the previous message. Here are the fileds sgdg_client_id, sgdg_client_secret, sgdg_access_token, and sgdg_root_path in the options table with sgdg prefix.

    Thank you.

    Plugin Author Marek Dědič

    (@marekdedic)

    Hi,
    could you please verify that you have the PHP extension ctype installed and enabled?

    Thanks,
    Marek

    Thread Starter computingforall

    (@computingforall)

    Wow wow and wow 🤩 Thank you so much for suggesting the ctype installation! I spoke with the hosting company and they installed ctype for the account. Then the advanced settings of the plugin Image and video gallery from Google Drive started to work.

    Again, you have built an excellent plugin!

    Many many many thanks! ⭐️⭐️⭐️⭐️⭐️

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing Advanced Option settings’ is closed to new replies.