pluck
pluck 4.7 out now, download it today!

pluck support forums

for all your questions about the easiest CMS on the planet

You are not logged in.

Announcement

New registrations are disabled for some spam problems. New registrations will be avaliable soon. If you want to help to keep forum away from spam - contact us.
Please post your bug reports on Launchpad.

#1 19-07-2011 16:20:10

Alma
Member
Registered: 19-07-2011
Posts: 4

When I preview webpage I get 404 error

I have installed Pluck on my website and tryed to make pages but when I look at the website or preiew it I get this:
404: not found
This page could not be found.

Any clue what can be wrong? Everything seams to be working fine, I have tryed to delite and reinstall Pluck on my server but nothing changes.

Alma

Last edited by Alma (16-08-2011 11:03:58)

Offline

#2 19-07-2011 18:37:39

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: When I preview webpage I get 404 error

Can you post a link to your website?

Offline

#3 19-07-2011 18:40:42

Alma
Member
Registered: 19-07-2011
Posts: 4

Re: When I preview webpage I get 404 error

URL removed

Alma

Last edited by Alma (21-07-2011 20:45:27)

Offline

#4 20-07-2011 05:53:59

a_bach
developer/module guru
From: Poland
Registered: 24-11-2008
Posts: 439
Website

Re: When I preview webpage I get 404 error

Chech if you have any files on your serwer on data/settings/pages

Mabey some problems with writing/reading this directory?

When you acces PA you can see your page and you can edit it?

A_Bach

Offline

#5 12-08-2011 12:42:49

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: When I preview webpage I get 404 error

Alma, can you please check whether the server your website is hosted on meets the requirements as mentioned here? If you're not sure, you can send a mail to your hosting provider with the above link. They can tell you more about the specs of your server.

Offline

#6 12-08-2011 18:20:54

Alma
Member
Registered: 19-07-2011
Posts: 4

Re: When I preview webpage I get 404 error

Hello Sander, thank you for answering. I'm not too sure about the tecnical stuff so I wrote Surftown and asked them to look at the link with the requirements. They sent me another link full of informations, I could not find all the answers but here is the link: http://wsl2.surftown.com/phpinfo.php
Can you see if something is missing?

Alma

Offline

#7 13-08-2011 12:34:25

karlh
Member
Registered: 13-08-2011
Posts: 3

Re: When I preview webpage I get 404 error

Hi All,
I fixed the problem for Alma.

The online installer made httpd/httpd owner of the directories /data/settings/modules and /data/settings/pages.
When running the installer the webserver (uid:httpd) creates the directories, therfor the owner of the directories is wrong.

install.php Line: 172 to 184 contains the following statements.
                        //Make some dirs for the trashcan and modulesettings.
                        mkdir('data/trash/pages', 0777);
                        chmod('data/trash/pages', 0777);
                        mkdir('data/trash/images', 0777);
                        chmod('data/trash/images', 0777);
                        mkdir('data/settings/modules', 0777);
                        chmod('data/settings/modules', 0777);
                        mkdir('data/settings/pages', 0777);
                        chmod('data/settings/pages', 0777);
                        mkdir('data/settings/modules/albums', 0777);
                        chmod('data/settings/modules/albums', 0777);
                        mkdir('data/settings/modules/blog', 0777);
                        chmod('data/settings/modules/blog', 0777);


I removed these and recreated them manually with the correct owner and all works fine now.

Now this can be solved very simple in the 4.6.4 to 4.6.5 by removing the following statements in the install.php file, and create the dirs manually before packing the source file for download ?

Best regards
Karl Heidar

Offline

#8 13-08-2011 13:20:18

karlh
Member
Registered: 13-08-2011
Posts: 3

Re: When I preview webpage I get 404 error

Hi adittionally the files that are created by the server need to be created allso in the install source package.

These 5 files need to be created but empty, otherwise the installer will create these files with the wrong owner uid:
data/settings/token.php
data/settings/update_lastcheck.php
data/settings/pass.php
data/settings/options
data/settings/install.dat


I have changed the install.php file, created the directorys and files needed, and i am testing this now.

Offline

#9 13-08-2011 16:04:02

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: When I preview webpage I get 404 error

Hi karlh,

thanks for your information. On most servers, the problems you describe do not occur. What you describe, sounds like a safe_mode issue to me, however on http://wsl2.surftown.com/phpinfo.php the local value of safe_mode is off, so that should be ok. The master value is set to on however, so maybe the safe_mode is enabled on the account in question. Can you confirm this?

Offline

#10 13-08-2011 16:22:49

karlh
Member
Registered: 13-08-2011
Posts: 3

Re: When I preview webpage I get 404 error

Hi Sander,
Yes indeed, safe_mode was enabled sad not on the master server but on the site.
But this is still an issue for those who have safe_mode enabled ?

Offline

#11 13-08-2011 17:52:39

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: When I preview webpage I get 404 error

Yes. That's why pluck only supports servers with the PHP safe_mode disabled (as mentioned in the requirements). In my opinion, a webhost wouldn't need to have the safe_mode enabled at all. Luckily, most of the webhosting providers nowadays have it disabled.

The goods news, though, is that the safe_mode will be removed starting with PHP 6. In the mean time, users will have to make sure their host does not run PHP with the safe_mode enabled. Pluck 4.7 will feature a requirements check which will detect this setting.

Offline

#12 18-08-2011 13:29:22

Alma
Member
Registered: 19-07-2011
Posts: 4

Re: When I preview webpage I get 404 error

Hello Sander,
Surftown moved my account over to a PHP5 server and and both save_modes are off now and everything works on Pluck smile

I installed both Pluck 4-6-4 and Pluck 4-7 beta which  I like better because I can create sublinks. Hoever there are no themes for the beta version so I guess I have to wait or try to develope my own theme.

Thanks,
Alma

Offline

#13 06-11-2011 11:06:49

aniston12
Member
From: England
Registered: 06-11-2011
Posts: 1
Website

Re: When I preview webpage I get 404 error

YES it fixed my problem

Offline

Board footer

Powered by FluxBB