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

2.5.16 can't edit any pages anymore #892

Closed
somatonic opened this issue Jan 30, 2015 · 7 comments
Closed

2.5.16 can't edit any pages anymore #892

somatonic opened this issue Jan 30, 2015 · 7 comments

Comments

@somatonic
Copy link

Fatal error: Call to a member function of() on a non-object in /home/www-data//wire/core/Page.php on line 664
Error: Call to a member function of() on a non-object (line 664 of /home/www-data/
/wire/core/Page.php)
This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. Administrator has been notified.

@somatonic
Copy link
Author

I'm using the new alternative user template, location.. I think it has to do with that cause the error is here
$this->createdUser->of($this->of());

@somatonic
Copy link
Author

Once I remove the config it works again

// $config->userTemplateIDs = array(3, 96);
// $config->usersPageIDs = array(29, 14017);

@somatonic
Copy link
Author

Rolling this back cause too many bugs yet.

Now I can't remove the pass field from my template and get a fatal error

@ryancramerdesign
Copy link
Owner

Any other factors in this particular installation (modules, etc.?) I'm not
seeing the issue here. Though I will go ahead and add an extra check to the
line you mentioned to prevent it from causing an error.... Now taking a
closer look at that line, I'm guessing the error is occurring on a page
where the created user of that particular page no longer exists? That's the
only thing I can figure so far.

Regarding the pass field, that is a system/permanent field that is not
removable. You'd have to go into the DB for that one (fieldgroups table).

On Fri, Jan 30, 2015 at 8:33 AM, Philipp Urlich notifications@github.com
wrote:

Rolling this back cause too many bugs yet.

Now I can't remove the pass field from my template and get a fatal error


Reply to this email directly or view it on GitHub
#892 (comment)
.

@somatonic
Copy link
Author

Yep the user that created or modified don't exist anymore. I deleted some user previously.

But when I remove the config it works again, and the user created modified is a "?"

@ryancramerdesign
Copy link
Owner

I did put in a fix for this in Friday's commits, though not positive it's fixed since I've not seen the issue myself yet. But please let me know if you continue to see it.

@somatonic
Copy link
Author

Still happends. I also experience this same error when using Dynamic Roles module and try to add a page.

Error: Call to a member function of() on a non-object (line 665 of /home/www-data/dev.1815.ch/wire/core/Page.php)
This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. Administrator has been notified.

Your "fix" doesn't change anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants