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

Doesn't work without signing URLs #4

Closed
mgtcampbell opened this issue Jul 31, 2023 · 2 comments
Closed

Doesn't work without signing URLs #4

mgtcampbell opened this issue Jul 31, 2023 · 2 comments

Comments

@mgtcampbell
Copy link

Hi there,

In the docs it says:

If you're signing urls, Add define( 'WP_IMGIX_SIGNING_TOKEN', 'abcdefg123456' ) to your wp-config.php file.

Implying that this setting is optional.

However if I do not define this in my wp-config.php file, then I get the following error:

Fatal error: Uncaught Error: Undefined constant "WP_IMGIX_SIGNING_TOKEN" in /var/www/vhosts/ply.digital/urban.staging.ply.digital/wp-content/plugins/wp-imgix-master/includes/class-wp-imgix.php:61

If I then try and define this as null - i.e. define( 'WP_IMGIX_SIGNING_TOKEN', '' ) or define( 'WP_IMGIX_SIGNING_TOKEN', null), then the image URLs in the content are not replaced.

Please help.

Ideally I do not want to turn on signing URLs for this website.

Cheers
Mark

@mgtcampbell
Copy link
Author

FWIW it doesn't seem to work with signing URLs either... may just be a PHP 8 compatibility issue based on further error logging.

@mgtcampbell
Copy link
Author

My bad - turned out there was an issue with the custom theme code

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

1 participant