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

Have tried to move a page, it didn't work, and the page is gone now. #3227

Closed
adrianmrozo opened this issue Feb 15, 2021 · 5 comments
Closed

Comments

@adrianmrozo
Copy link

adrianmrozo commented Feb 15, 2021

Have tried to move a page, it didn't work, and the page is gone now.
Error message:
FilesystemIterator::__construct(… some folder structure …): filled to open dir: Not a directory
I still found a file with the name of the page in my hosting service, but the file is empty (0 bytes).
Used grav version: v1.7.3.

@mahagr
Copy link
Member

mahagr commented Feb 16, 2021

Unfortunately, I need more information in order to figure out what went wrong.

All information is welcome, here are some questions:

  • What was the language for your page?
  • Do you have multiple languages? Did this page have multiple translations?
  • What was the slug/path for the page? Did it contain non-ascii characters?
  • In the target folder, did you have a page with the same slug?
  • Are you able to reproduce the issue?

@adrianmrozo
Copy link
Author

Sure, no problem, I was worried that it might be too little information, to work on.
What was the language for your page? English.
Do you have multiple languages? No.
Did this page have multiple translations? No.
What was the slug/path for the page? The complete error message is the following: FilesystemIterator::__construct(/home/d4chdjbkuiqm/public_html/user/pages/11.test): failed to open dir: Not a directory
Did it contain non-ascii characters? No.
In the target folder, did you have a page with the same slug? Not sure what this means.
Are you able to reproduce the issue? Yes. Everytime I try to move a page.
Maybe it really has something with the path, as I do not know where the part "d4chdjbkuiqm" is coming from.

@mahagr
Copy link
Member

mahagr commented Feb 16, 2021

I'm still not able to reproduce the issue.

The part "d4chdjbkuiqm" is your user in the server.

Can you check what's in the folder /home/d4chdjbkuiqm/public_html/user/pages/11.test? As it says that it is not a directory.

Also, can you enable debugger and errors from your Grav configuration to see the full stack trace to the issue?

@mahagr
Copy link
Member

mahagr commented Mar 23, 2021

@adrianmrozo I was finally able to reproduce this issue. The bug happens when you try to move the page to itself.

@mahagr
Copy link
Member

mahagr commented Mar 23, 2021

Related commits to the issue:

0491bd1
eb89c00
fa81906

@mahagr mahagr added the fixed label Mar 23, 2021
@mahagr mahagr closed this as completed Apr 13, 2021
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