givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
384 stars 82 forks source link

Not Found issue: added simple Post or Page, got error when view/edit #220

Closed Vander-Bilt closed 1 week ago

Vander-Bilt commented 1 week ago

Just added a simple Post, tried to view, got error:

image

Tried to edit, got error: image

The same error shows up when trying to add a Page.

I am a beginner for Vvveb and don't know where I might be wrong. Please give me your guidance.

givanz commented 1 week ago

I checked again on localhost and the previous fix was not complete, some urls were still wrongly generated.

Please redownload latest.zip and update vvveb/system/sites.php you might need to clear cache after update.

If it still doesn't work please paste the url of the page, you can get the url by opening the page from the button in the screenshot editor-page-url

Vander-Bilt commented 1 week ago

@givanz Thanks givanz for your reply. I don't know how to update vvveb/system/sites.php to fix it.

The url of the page: http://myfree.com:8081/testing-post-2 http://myfree.com:8081/mypage-3

myfree.com is my local domain, in my /etc/hosts: 127.0.0.1 myfree.com

givanz commented 1 week ago

If you open the pages http://myfree.com:8081/mypage-3 and http://myfree.com:8081/testing-post-2 directly it shows the same not found error or this happes only in the page builder?

The error shows only for newly created pages or is the same for existing demo sample pages also?

Are all pages except admin and homepage loading?

To update you need to redownload latest.zip and copy the file to your server to Vvveb /system folder.

Vander-Bilt commented 1 week ago

After a totally new download latest.zip and installation,

Admin editor:

the error shows for existing demo sample pages Pricing, Portfolio, About... http://myfree.com/page/pricing-13?theme=landing&r=0.25333877069997346 http://myfree.com/page/about-11?theme=landing&r=0.5154860710486813 http://myfree.com/page/portfolio-14?theme=landing&r=0.9781564394091773 http://myfree.com/page/services-12?theme=landing&r=0.7675960577778094

image

But for demo page Category, Shop, Product... no error.

http://myfree.com/themes/landing/product/category.html?r=0.7648372129233216 http://myfree.com/themes/landing/product/product.html?r=0.1762965211337577

image

View:

http://myfree.com/page/pricing-13 http://myfree.com/page/services-12

image image

Product Editor:

http://myfree.com/vadmin-heidg7zj//index.php?module=product/product&product_id=19&type=product

image

Product View:

http://myfree.com/product/product-eighteen-18

image

givanz commented 1 week ago

Thanks for the screenshots.

The 404 not found error is generated by apache.

Some possible causes can be missing mod rewrite module or .htaccess not loaded.

To enable mod rewrite please run

sudo a2enmod rewrite

If it still doesn't work edit /etc/apache2/apache2.conf and change

AllowOverride None

to

AllowOverride All

to enable .htacess processing and restart apache

sudo systemctl restart apache2
Vander-Bilt commented 1 week ago

Thanks @givanz

The issue resolved. The cause is that I missed to load rewrite module.