Slow "New Page" from Versions interface
I am having an issue with the new page functionality from within versions. When I click new page either the system doesn't respond at all (recognize I clicked add page), it takes 30 - 40 seconds for the composer interface to come up, or I get a 504 gateway timeout error.
(Edit begins here)
After a timeout occurs the "new page" exists in in Drafts. After picking a location, and attempting to publish I receive the following error:
Call to a member function publish() on null
Have any of you seen anything like this that could help me track it down?
I'm running C5 v 8.2.1 on MySQL 5.6.32 and PHP 7.0.1.
Does this happen on pages with many versions?
Are you using shared web hosting?
The page I want to duplicate has 40 edits. It does not work. I have successfully duplicated two pages (make a new page from an existing version) each with 5 and 6 versions.
Are any of these pages, copies of copies?
As a workaround, have you tried using the sitemap to make a copy?
About using the sitemap... That is where I am making duplicates:
1. click on desired page.
2. click versions.
3. click version number.
4. click add new page.
Is there another way you were thinking of that I am not familiar with (there is much I am not familiar with :) )
I was able to reproduce the issue using a fresh install with default sample content. After installing concrete5, and without making any changes to the home page, I tried adding a page from the initial version. This created the error "Call to a member function publish() on null" when publishing the page.
Do you have this issue with copying from versions when using a page other than the home page?
I did not have any issues with timeouts. Copying a page from versions might be an intensive process with many page versions and possible permissions. I wonder if increasing the PHP max_execution_time would help with the time out.
As an alternative to creating a page version copy, you could export the database and copy the site files to a local development server. This would allow you to have a safe place to work on the page without affecting your live site.
In the sitemap, you can drag an existing page onto another page to trigger a popup that allows you to move, alias, or copy the dragged page. This does not appear to work with the home page.
Dashboard > Sitemap > Full Sitemap