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

500 Error after instalation #15

Open
northivanastan opened this issue Nov 21, 2018 · 9 comments
Open

500 Error after instalation #15

northivanastan opened this issue Nov 21, 2018 · 9 comments
Labels

Comments

@northivanastan
Copy link

northivanastan commented Nov 21, 2018

For some reason every page returns a 500 Internal Server error after installing PicoContentEditor.

I have cloned the latest version of the repository, renamed the directory PicoContentEditor and changed its ownership to www-data. I am using the pagination, search, and users plugins. They work on their own, but not with the Content Editor.

I found that the errors are seemingly because the __DIR__ variable is being used to find PicoCMS's directory, but is instead returning PCE's directory

@northivanastan northivanastan changed the title Returns a 500 error 500 Error after instalation Nov 21, 2018
@nliautaud
Copy link
Owner

Hi, could you try witch PCE only, and if it pass adding other plugins one at a time ?

You can enable a debug mode in the settings or, if it crashes before that, could you enable PHP errors reporting ?

@northivanastan
Copy link
Author

northivanastan commented Nov 21, 2018

I removed all other plugins. Debug mode and PHP error reporting are enabled. I didn't see any error from the webserver, but this came up in the log:

[Wed Nov 21 14:18:48.043815 2018] [:error] [pid 1202] [client 98.245.68.244:48950] PHP Warning: require(/var/www/html/plugins/PicoContentEditor/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/plugins/PicoContentEditor/PicoContentEditor.php on line 2

/vendor/autoload.php is a file in PicoCMS's /vendor directory but it is being looked in in PicoContentEditor's directory.

Thanks for responding quickly.

@nliautaud
Copy link
Owner

nliautaud commented Nov 21, 2018

Did you manually downloaded/install ?

It seems that the autoloader is indeed missing, i'll look at it.
But I'll probably drop the manual install support and use composer only to simplify the repo/update.

@nliautaud nliautaud added the bug label Nov 21, 2018
@northivanastan
Copy link
Author

I did manually download, since I also manually downloaded Pico itself.

@nliautaud
Copy link
Owner

Can you try to download it from https://php-download.com/package/nliautaud/pico-content-editor by using the option create-project ? It will create a pre-bundled release for you.
I'll probably document that as the recommended way for a manual install without composer.

@northivanastan
Copy link
Author

northivanastan commented Nov 21, 2018

It no longer crashes; I can access the site, log in with pico-users and use the editor. I can't get content to save but I suspect that's just my error.

@jonwgeorge
Copy link

@northivanastan were you ever able to solve the no saving error? I keep getting a message while in debug mode that says "Error replacing the region content".

@northivanastan
Copy link
Author

northivanastan commented May 26, 2019 via email

@dwichers
Copy link

After fixing this issue I get this message when I try to save changes I made: "You don't have the rights to save content". What can I do about that?

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

No branches or pull requests

4 participants