404 after post

Phoca Guestbook - creating guestbooks in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

hmmm, there is a big

Post by Jan »

hmmm, there is a big problem with form tag... on some servers work it with index.php, on some servers with full path, ... Some old PHP versions causes this problem too. Please compare the php versions..
If you find Phoca extensions useful, please support the project
royahuis
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 10 Mar 2008, 21:03

Hi,indee

Post by royahuis »

Hi,

indeed, the website I try to install it to now, has PHP 5, while the other sites have PHP 4 installed. Do you think there would be any way to manually edit the files, so that I could hardcode the proper link in the 'action' part of the form field?

If I could get it working, I'd off course be happy to share the 'solution' here I'll start digging code then :D

Thanks,

Roy.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

yes, just change it

Post by Jan »

yes, just change it here:
row 207
<form action="<?php echo JRoute::_($this->action);?>" method="post" name="saveFo
rm" id="saveForm" onsubmit="return submitbutton();">

row 363
<form action="<?php echo JRoute::_($this->action);?>" method="post" name="adminF
orm" id="adminForm">
If you find Phoca extensions useful, please support the project
royahuis
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 10 Mar 2008, 21:03

Thanks for the fast

Post by royahuis »

Thanks for the fast reply! I will try tomorrow and post results on this forum off course.
royahuis
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 10 Mar 2008, 21:03

Hi,first

Post by royahuis »

Hi,

first, sorry to bother you again. but could you please tell me what file i need to edit?

thanks,
Roy.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

you should change th

Post by Jan »

you should change the action parameter... you should try to add there: e.g. index.php or your path...
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Try to update to 1.2

Post by Jan »

Try to update to 1.2.3 version...
https://www.phoca.cz/phocaguestbook/inde ... e=download

There is other method to create a form link
If you find Phoca extensions useful, please support the project
eLMO
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 15 Mar 2008, 16:10

I have the same prob

Post by eLMO »

I have the same problem at my site (http://www.mpc.be/heidedivas/index.php? ... aguestbook &id=1&Itemid=19). When I post a message I get a 404 error because the url is http://www.mpc/heidedivas/heidedivas instead of http://www.mpc.be/heidedivas.

A couple of messages ago you advised to change something in the php-code, but I don't understand where to make the changes. Can you give a little bit more information?

Thanks in advance
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Yes, the problem is

Post by Jan »

Yes, the problem is in <form action="...

There is:
/heidedivas/heidedivas/

instead of
/heidedivas/

Joomla creates wrong URL

Which version of Phoca Guestbook do you use?
If you find Phoca extensions useful, please support the project
eLMO
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 15 Mar 2008, 16:10

The latest version,

Post by eLMO »

The latest version, 1.2.3

There's also a problem with the title-field.
Post Reply