- This topic has 20 replies, 4 voices, and was last updated 4 years, 1 month ago by
Leo.
-
AuthorPosts
-
January 4, 2021 at 9:11 am #1605250
Kumar
Hi,
I have the following error.
PHP message: PHP Fatal error: Uncaught ValueError: Unknown format specifier “#” in /www/parenthoodguide_108/public/wp-content/themes/generatepress/inc/structure/post-meta.php:460
PHP 8, latest GP And GP Premium
Could you please help?
Regards
KumarJanuary 4, 2021 at 9:43 am #1605292Tom
Lead DeveloperLead DeveloperHi there,
There is no
#character on that line: https://github.com/tomusborne/generatepress/blob/3.0.2/inc/structure/post-meta.php#L460Has the file been altered at all?
Let me know 🙂
January 5, 2021 at 1:56 am #1606089Kumar
Hi Tom,
Happy New Year!
Please see here and also the private box
https://snipboard.io/7BafKJ.jpgThese errors appear only for my french archive pages. Could it be conflicting with some CSS or hook?
Thanks
KumarJanuary 5, 2021 at 3:42 am #1606220Kumar
Additional info to the above:
Hi Tom,
When I downgraded to 7.4 to my staging site – the french archives seem to work okay.
See url in private box.
Thanks
KumarJanuary 5, 2021 at 10:30 am #1606960Tom
Lead DeveloperLead DeveloperThere was some broken HTML in your private replies, so I had to remove them.
However, from what I saw, they were still saying something about line 460.
That line is compatible with PHP 8.0 – it’s a core WordPress function.
Has the file on your end been altered at all?
January 5, 2021 at 12:42 pm #1607090Kumar
I don’t think we have altered any file as far as I know.
It makes me wonder if it is a hack or something? I do have a GP child theme
Appreciate any guidance on this.
Regards
KumarJanuary 6, 2021 at 8:46 am #1608245Tom
Lead DeveloperLead DeveloperDoes your line 460 of the following file match the core file?: https://github.com/tomusborne/generatepress/blob/3.0.2/inc/structure/post-meta.php#L460
January 6, 2021 at 9:28 am #1608296Kumar
I think it looks the same
See screengrab here
https://snipboard.io/rBZLvM.jpgRegards
KumarJanuary 7, 2021 at 11:35 am #1609985Tom
Lead DeveloperLead DeveloperI’m not sure what the error would be there then, as there is no
#character on that line or in the core function that it’s referencing: https://developer.wordpress.org/reference/functions/the_title_attribute/I do have a test site using PHP8 and I’m not getting any errors: http://testingm.kinsta.cloud/
January 8, 2021 at 8:49 am #1611187Kumar
Not sure where the problem is.
I have reverted back to php 7.4 and it has resolved the issue.
Thanks
KumarJanuary 8, 2021 at 9:54 am #1611277Tom
Lead DeveloperLead DeveloperWe’ll continue testing on our end.
On your end, it may be worth testing a fresh install on a PHP 8 install to see if you run into the same issue.
January 21, 2021 at 4:58 am #1627579Kumar
Hi Tom,
I have tried to re-install WordPress core on staging, but that didn’t help either.
Changed to the 2021 default theme and the archive page loaded but when I re-activated GP – this came back.
https://staging-parenthoodguide.kinsta.cloud/fr/pregnancy/
Not sure, something surely up with this. (it looks like if the theme is expecting something else but somehow receives a # instead)
Would you mind looking into this for us?
Regards
KJanuary 21, 2021 at 9:59 am #1628186Tom
Lead DeveloperLead DeveloperThat username seems to have 2FA activated – can we deactivate that for now?
January 21, 2021 at 10:48 am #1628244Kumar
Hi Tom
Please try now.
Thanks
KJanuary 22, 2021 at 9:41 am #1629588Tom
Lead DeveloperLead DeveloperDoes it still happen if you activate the parent theme instead of the child theme?
-
AuthorPosts
- You must be logged in to reply to this topic.