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

[Pods_page] Pod not found (empty pod_id) #3573

Closed
A13xs opened this issue Jun 9, 2016 · 1 comment
Closed

[Pods_page] Pod not found (empty pod_id) #3573

A13xs opened this issue Jun 9, 2016 · 1 comment
Labels
Status: Need Dev Feedback Waiting on feedback from developer of PR Status: Need Reproduction Issue must be reproduced before coding can begin
Milestone

Comments

@A13xs
Copy link

A13xs commented Jun 9, 2016

Today I updated the plugin Pods to the latest version 2.6.5.2 and fails the shortcodes of this type

[pods pods_page="mypod"]

Only this text is displayed: "Pod not found"

I downloaded version to 2.6 and it work. I have compared it to the next 2.6.1 and I've seen that in pods/classes/Pods.php change

 if ( empty( $pod ) )
        return '<p>Pod not found</p>';

to

if ( empty( $pod ) || ! $pod->valid() )
        return '<p>Pod not found</p>';

I have returned to upgrade to the latest and I have removed the above change and it seems that everything is working again.

I researched more and the value of the function valid() returns false by the next check
empty( $this->pod_id )

Where the id established? What that information is stored table to check if there is any record with pod_id to null?

@JoryHogeveen JoryHogeveen added Status: Need Dev Feedback Waiting on feedback from developer of PR Status: Need Reproduction Issue must be reproduced before coding can begin labels Jul 13, 2016
@quasel
Copy link
Member

quasel commented Sep 1, 2018

Sorry for the late reply, feel free to comment if you still have questions, but we're closing this due to inactivity!

@quasel quasel closed this as completed Sep 1, 2018
@sc0ttkclark sc0ttkclark added this to the Pods 2.7.13 milestone Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need Dev Feedback Waiting on feedback from developer of PR Status: Need Reproduction Issue must be reproduced before coding can begin
Projects
None yet
Development

No branches or pull requests

4 participants