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

Errors when trying to change timezone #12

Closed
5 tasks done
SophiaAtkinson opened this issue Jan 13, 2023 · 2 comments
Closed
5 tasks done

Errors when trying to change timezone #12

SophiaAtkinson opened this issue Jan 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@SophiaAtkinson
Copy link

SophiaAtkinson commented Jan 13, 2023

Code of Conduct

Submission validity

  • This is not a personal support request, that should be posted on discussions community.
  • I checked current issues and this request isn't a duplicate of an existing issue, opened or closed.

Self troubleshooting

Version

1.19.1

Description

When attempting to change the timezone the following error is shown
Note that I'm using PHP 8.0.14
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1364 Field 'option_id' doesn't have a default value in \includes\vendor\aura\sql\src\AbstractExtendedPdo.php:565 Stack trace: #0 \includes\vendor\aura\sql\src\AbstractExtendedPdo.php(565): PDOStatement->execute() #1 \includes\vendor\aura\sql\src\AbstractExtendedPdo.php(237): Aura\Sql\AbstractExtendedPdo->perform('INSERT INTO you...', Array) #2 \includes\Database\Options.php(211): Aura\Sql\AbstractExtendedPdo->fetchAffected('INSERT INTO you...', Array) #3 \includes\Database\Options.php(159): YOURLS\Database\Options->add('timezone', Array) #4 \includes\functions-options.php(71): YOURLS\Database\Options->update('timezone', Array) #5 \user\plugins\timezones\admin.php(270): yourls_update_option('timezone', Array) #6 \user\plugins\timezones\admin.php(15): yourls_tzp_config_update_settings() #7 \includes\functions-plugins.php(815): yourls_tzp_admin_page() #8 \admin\plugins.php(8): yourls_plugin_admin_page('time_zone_confi...') #9 {main} thrown in \includes\vendor\aura\sql\src\AbstractExtendedPdo.php on line 565

Expectation

No response

Reproduction steps

  1. Install plugin
  2. Activate plugin
  3. try and change timezone

Context

No response

@SophiaAtkinson SophiaAtkinson added the bug Something isn't working label Jan 13, 2023
@SophiaAtkinson SophiaAtkinson changed the title Errors when trying to change time zone Errors when trying to change timezone Jan 13, 2023
@ozh
Copy link
Member

ozh commented Jan 17, 2023

Cannot reproduce. Works fine for me using latest plugin version (1.3), on YOURLS 1.9.1, with PHP 8.1.5

@ozh ozh closed this as completed Jan 17, 2023
@SophiaAtkinson
Copy link
Author

It seems it was purely a bug with my DB, it's all working now, sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants