Closed pyrobob83 closed 1 year ago
Hi @pyrobob83
I've tested the "Include pagination links in canonical URL" on PHP version "7.4.3". It works fine on my installation.
Can you check what type of the "exp_seolite_config > include_pagination_in_canonical" field is in the database? It should be "enum('y', 'n')" and not "int".
What version of SEO Lite Pro are you using? And did you update from an older version of SEO Lite? What version was that?
Sorry for the delay - been meaning to try and get back to you on this for ages, but alas... I couldn't recall where I ran into this and think it may have been on a legacy project where we were upgrading the templates, so could've been anything. Feel free to close it and I'll try and be more responsive if I find anything in future. Thanks!
If you try and assign a value to these radio buttons, you get this server error:
Exception Caught SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'y' for column 'include_pagination_in_canonical' at row 1: UPDATE
exp_seolite_configSET
template= '<title>{title}</title>\n<meta name=\'keywords\' content=\'{meta_keywords}\' />\n<meta name=\'description\' content=\'{meta_description}\' />\n<link rel=\'canonical\' href=\'{canonical_url}\' />',
default_keywords= 'science,curriculum,Science Kits,Science Modules,SEPUP,STEM,Lawrence Hall of Science,Next Generation Science',
default_description= 'Publishers of middle and high school science curriculum, custom science kits,modules, materials and supplies',
default_title_postfix= '',
default_og_description= '',
default_og_image= '0',
default_twitter_description= '',
default_twitter_image= '0',
include_pagination_in_canonical= 'y' WHERE
site_id` = 1ee/legacy/database/drivers/mysqli/mysqli_connection.php:114 Stack Trace: Please include when reporting this error
`
and it also wipes all your data filling every setting field to just "0". Using EE7.2.5 and PHP8.1