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

Transient names exceed maximum option_name length #51

Closed
johnbillion opened this issue Aug 16, 2013 · 3 comments
Closed

Transient names exceed maximum option_name length #51

johnbillion opened this issue Aug 16, 2013 · 3 comments

Comments

@johnbillion
Copy link
Contributor

The transient name a8c_developer_plugin_details_{plugin} causes the option_name in the options table to exceed the maximum length when the transient timeout is stored.

screen shot 2013-08-16 at 10 16 28

Related ticket on core Trac: http://core.trac.wordpress.org/ticket/13310‎

@joshbetz
Copy link
Contributor

So, recapping from that ticket: option_name is VARCHAR(64) and a schema change to fix that seems unlikely.

With 19 characters for _transient_timeout_, we actually can only have 45 character option names. An easy fix for this case would be to reduce a8c_developer_plugin_details_ to a8c_developer_details_. We could also look at concatenating the plugin slug if necessary, but that seems dangerous since there are some related plugins included that could end up with the same slugs.

@johnbillion
Copy link
Contributor Author

a8c_dev_details would also work as an even shorter prefix. That's 13 characters shorter than the current one.

@tillkruss
Copy link

The truncated transient name is causing other plugins to throw undefined index notices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants