Plugin Author
Ajay
(@ajay)
I’m not sure why this error got recorded as prefix is a valid property defined on Linr 43.
What version of PHP are you running?
https://github.com/WebberZone/contextual-related-posts/blob/master/includes/admin/class-settings.php#L43
Only one thing I can think of is changing line 1402 to self::prefix instead of $this->prefix.
Hi, my PHP version is: 8.4.13
Plugin Author
Ajay
(@ajay)
I’ll need to test this with 8.4.x.
Are you in a position to make file edits at your end?
wp php-compat –php_version=8.4 and wp php-compat –php_version-8.3 both report incompatibility between this plugin and those versions. Is there any chance there’s an upgrade coming soon? I’d like to upgrade my php versions…
Plugin Author
Ajay
(@ajay)
Are you seeing any errors in addition to the above one?
I believe I’ve patched that in the repo today but I need to double check when I’m in front of a computer.
Haven’t upgraded due to the reported incompatibility, so no further errors other than the incompatibility report. Sorry.
Plugin Author
Ajay
(@ajay)
@siawp I’m not sure how the php-compat plugin works, as it’s not the default in the CLI. I run my plugins on 8.3, so it should be compatible, as I don’t have any such compatibility issues yet or reported by others.
However, I do need to check 8.4 as per what was flagged above.
Update: Ignore – I noticed the same warning in 8.3.
-
This reply was modified 1 month, 2 weeks ago by
Ajay.
Plugin Author
Ajay
(@ajay)
I’ve committed a change which should fix this issue.
https://github.com/WebberZone/contextual-related-posts/releases/tag/4.1.1-beta1
Would you be able to test this beta version and let me know if you see any more issues?
I check it today and let you know.
Hi, for now i dont see the message again. So it seems it works.
Plugin Author
Ajay
(@ajay)
@hanmedia
Thank you for confirming. This will be included in the next release.
Still showing a failure on running wp php-compat –php_version=8.4
| contextual-related-posts-1 | plugin | failure | 4.1.1-beta1 | 19.82s | 198 |
Plugin Author
Ajay
(@ajay)
I haven’t been able to run this on my WP CLI. Can you tell me how you’ve got that special command to check compatibility.
Or is it giving you exact reasons for an error. I suggest running the plugin on a test install and letting me know where you’re spotting issues else it’s impossible for me to fix something that I cannot see.
Apparently this is something my provider (Dreampress) includes on their host installation. Poking around in their directories, it appears to be a fork of this: https://github.com/danielbachhuber/php-compat-command
Plugin Author
Ajay
(@ajay)
That extension is outdated. But all roads lead to https://github.com/PHPCompatibility/PHPCompatibilityWP
I will run tests against this as it is the latest support.
Again, there is a point on real world and @hanmedia is running my plugin on 8.4 as you can see above.