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

Two Homepages in editor ? #98

Open
Twilight-Computer opened this issue Mar 19, 2024 · 9 comments
Open

Two Homepages in editor ? #98

Twilight-Computer opened this issue Mar 19, 2024 · 9 comments

Comments

@Twilight-Computer
Copy link

In the "edit Website" 2 Homepages are displayed. Deleting 1 deletes both and you need to restore.
However changes made to the "homepage" (which reflect in the index.html in the templates folder) do not render in the browser ?

eg. Make a change like remove a button / save / view webpage and button is still there ?

What is the "real" home page and why does this duplicate keep re-appearing ?

@givanz
Copy link
Owner

givanz commented Mar 19, 2024

Sorry for the confusion, I need to make some changes to make it more obvious what is the difference between them.

The first one is the live homepage loaded with posts menus etc and the other is the theme's static template used to render the home page.

In Vvveb themes are fully working static html sites, when a page is rendered it just fills the template with dynamic data from the database.

The list includes all theme templates, when using Edit site or Design page the live page will be loaded first above theme templates with a different icon.

admin-bar

The difference between live homepage and template homepage is that on the live page you can edit both the content like posts name/image etc and the template.

@Twilight-Computer
Copy link
Author

So after making and loosing many changes today - please confirm that I should be editing the first instance ? And should I be using the "design Page" from the live page view, as "edit website" seems to loose the changes made (and saved and backed up).

@givanz
Copy link
Owner

givanz commented Mar 20, 2024

Design page and Edit website point to the same page for homepage, the first one is a shortcut that can be used to quickly edit the viewed page from frontend.

Can you please provide more details about the lost changes? maybe this is caused by a bug.

You can use revisions to restore previous versions of the page.

Editing the template will only save layout changes, editing the live homepage allows to change content also, you can edit product and post names or change their images.

I think the live version is best because it edits the home page as it is and avoids confusion.

@Twilight-Computer
Copy link
Author

Twilight-Computer commented Mar 23, 2024 via email

@givanz
Copy link
Owner

givanz commented Mar 23, 2024

Thanks for details, there is a high chance this is caused by page cache folder permission issue.

Please empty the /public/page-cache/ folder and see if it works.

The folder needs php write permission, there should be a warning in admin > tools > cache if permission is lacking.

@Twilight-Computer
Copy link
Author

Twilight-Computer commented Mar 23, 2024 via email

@givanz
Copy link
Owner

givanz commented Mar 24, 2024

To keep settings after update, skip /config folder from the zip.

System settings like active plugins, routes and email are saved in /config to load before db is initialized.

One possible cause for working after restarting php is that APCu is used for caching and for some reason is not cleared on clear cache.

You can check if the current cache method from tools > system info > object cache

You can switch to file cache from /config/app.php to see if this solves the problem.

@Twilight-Computer
Copy link
Author

Twilight-Computer commented Mar 24, 2024 via email

@givanz
Copy link
Owner

givanz commented Mar 24, 2024

Can you also please empty /storage/compiled-templates? html files are converted to php and loaded from this folder.

Another issue that I've seen fixed by php restart on some setups is gettext translations cache.

To disable gettext please edit
/system/functions.php line 478

and change

if (function_exists('_')) {

with

if ( ! function_exists('_')) {

Thanks for the bug report, It's fixed in the latest update ae790bf

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

No branches or pull requests

2 participants