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

Undefined property: WP_Rewrite::$comments_pagination_base #706

Closed
mati8 opened this issue Mar 5, 2016 · 9 comments
Closed

Undefined property: WP_Rewrite::$comments_pagination_base #706

mati8 opened this issue Mar 5, 2016 · 9 comments

Comments

@mati8
Copy link

mati8 commented Mar 5, 2016

Since I upgraded from ZenCache to Comet Cache, in another plugin I am using on Wordpress I am receiving this error:

Notice: Undefined property: WP_Rewrite::$comments_pagination_base in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/comet-cache-pro/src/includes/closures/Shared/CachePathUtils.php on line 32

@raamdev
Copy link
Contributor

raamdev commented Mar 5, 2016

@mati8 Can you tell us what this other plugin is where you're receiving this notice?

@raamdev
Copy link
Contributor

raamdev commented Mar 6, 2016

I'm thinking we just need to check if $GLOBALS['wp_rewrite']->comments_pagination_base; is set (via isset()) before assigning it to a variable on this line: https://github.com/websharks/comet-cache-pro/blob/160227/src/includes/closures/Shared/CachePathUtils.php#L32.

@jaswsinc Do you concur?

@raamdev raamdev modified the milestone: Next Release Mar 6, 2016
@mati8
Copy link
Author

mati8 commented Mar 9, 2016

Hi, sorry for the late reply.
I am using this: https://it.wordpress.org/plugins/flickr-pick-a-picture/
Of course it's an old plugin, but maybe the error I am receiving it's on other plugins too, that's why I wrote it here. :-)

@jaswrks
Copy link

jaswrks commented Mar 23, 2016

@jaswsinc Do you concur?

I don't see a problem with doing that, but I don't think that should be necessary either. That is a property that is hard-coded into WordPress core. So if it doesn't exist, there is a bigger problem.

@mati8 What version of WordPress are you running please?

@jaswrks
Copy link

jaswrks commented Mar 23, 2016

I see that ->comments_pagination_base has existed since WP v4.2.0.

@jaswrks
Copy link

jaswrks commented Mar 23, 2016

I am using this: https://it.wordpress.org/plugins/flickr-pick-a-picture/

Thanks! :-) I reviewed the code in this plugin and there is nothing in it that would alter the WP_Rewrite class or any properties in it. So my best guess at this point is that you might be running an older version of WordPress that doesn't have the comments_pagination_base property.

@raamdev
Copy link
Contributor

raamdev commented Mar 23, 2016

I see that ->comments_pagination_base has existed since WP v4.2.0.

Ah, that's most likely the issue We currently indicate WP 4.1+ as a minimum requirement.

Given that we'll need to increase the minimum version at some point anyway, I'd say this is probably a good opportunity to bump the minimum requirement to WP 4.2+. WP 4.2 was released almost a full year ago (see versions)

@raamdev
Copy link
Contributor

raamdev commented Apr 6, 2016

Next Release Changelog:

  • Required WordPress Version is now v4.2. The minimum required WordPress version has been bumped from v4.1 to v4.2. See Issue #706.

@raamdev raamdev closed this as completed Apr 6, 2016
@raamdev
Copy link
Contributor

raamdev commented Apr 16, 2016

Comet Cache v160416 has been released and includes changes from this GitHub Issue. See the v160416 announcement for further details.


This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#706).

@wpsharks wpsharks locked and limited conversation to collaborators Apr 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants