ZenphotoCMS Forum
contact form plugin within zenpage 'page' - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: contact form plugin within zenpage 'page' (/thread-2151.html)

Pages: 1 2 3


contact form plugin within zenpage 'page' - stevenew - 12-10-2008

I am trying setup the contact_form plugin within a zenpage 'page', I have `` in the code block,
I fill in the fields and send but get this error:

Fatal error: Call to undefined function: getbarepagetitle() in /path to zenphoto install/themes/zenpage-default/pages.php on line 5

I am using zenphoto 1.2.1 [2635] zenpage 1.0.0 [2635]

Thanks




contact form plugin within zenpage 'page' - acrylian - 12-10-2008

I am sorry, I can't reproduce that. Please try reinstalling Zenpage, that function should be there.




contact form plugin within zenpage 'page' - stevenew - 12-10-2008

I have reinstalled zenpage but still get the same error. I do have my zenphoto install in root, could that have anything to do with it? I have changed the RewriteBase to / in htaccess. Everything else seems to work fine so far.




contact form plugin within zenpage 'page' - impete82 - 12-10-2008

did you activate the contact form plugin?




contact form plugin within zenpage 'page' - stevenew - 12-10-2008

Yes, the plugin is activated and the form appears on the zenpage 'page', I get the error after the form is sent.




contact form plugin within zenpage 'page' - acrylian - 13-10-2008

I am sorry, I did test that myself but it works for me. I don't see what the getBarePageTitle() function has to do with the contact form at all. What php version do you have? Also it would help to see the site itself.




contact form plugin within zenpage 'page' - stevenew - 13-10-2008

Its php 4.4.4 and mysl server 5.0.51a and the page is at Contact Page I have the page 'published' for now but let me know when you have tried it so I can 'un-publish' it.

Thanks




contact form plugin within zenpage 'page' - acrylian - 13-10-2008

The contact form issue may be related to the usage of php sessions on your site, but I sadly still do not have any clue about it.
The servers seems generally a little slow and I got once a mysql error for unknown reasons.

Maybe one of my fellow devs does have any idea.




contact form plugin within zenpage 'page' - stevenew - 13-10-2008

OK thanks for looking, I'll leave the contact page 'published' for now, in case anyone else has any idea, For what its worth I have ran contact forms before on this site and they ran fine. The previous 'incarnation' of the site also used wordpress with no issues.

Later I'll try setting up the contact form on a non zenpage page and see if it works.

Yes the servers do seem a little slow at the moment, I actually host which servage in Germany:-) I'm in the UK

Also I noticed that on the contact form plugin options, if I omit certain fields they still appear on the form. I did see another thread about this from a few weeks ago, which gave the impression it was fixed?

Thanks again, its been really good using zenpage other than this issue, just taking me a while copying everything over from the old version of the site!




contact form plugin within zenpage 'page' - acrylian - 13-10-2008

The contact form is actually not that specials or complicated that it should cause these problems... I did not expect it to cause these problems... That missing function is part of zenpage. If that is there it has to be, too. Maybe you have a typo in pages.php? (Just a guess...:-))

The contact form plugin has been fixed in the svn version. Although we generally don't recommend taking only parts from the svn it should work with that plugin I think.




contact form plugin within zenpage 'page' - stevenew - 13-10-2008

I have not changed or added anything to pages.php in fact I had not even looked in it till just now!




contact form plugin within zenpage 'page' - stevenew - 13-10-2008

I setup a separate contact page within the zenpage default theme. I then put a link in the normal content section of a new 'zenpage page' calling the contact.php in the theme. The form displayed, I was able to send it and I did not get the error.

So I guess it must be something to do with my server and putting `` code in the codeblock on the 'zenpage page'? You would know better than me:-)

However I now have the problem that I received no email message from the form submission at the address I set in the contact_form options.

I guess I better look to see if there are any threads on this:-(




contact form plugin within zenpage 'page' - acrylian - 13-10-2008

Seems indeed so or it is a issue of php version, although I did not find any obvious.

Regarding the email itself there is indeed sadly already another thread...: http://www.zenphoto.org/support/topic.php?id=4062&replies=14#post-24498
That may also be server related since the server has to sent the mail. It seems that does not work on all servers.




contact form plugin within zenpage 'page' - stevenew - 14-10-2008

Ok I'm back to this again:-) Still getting the original error even with the updated working form. So I have been playing around (with my limited knowledge) to figure this out.

Is it correct that if codeblock 1 is empty codeblock 2 or 3 will not display code?




contact form plugin within zenpage 'page' - acrylian - 14-10-2008

Welcome back..:-) No, actually the codeblocks should work even if one is empty.




contact form plugin within zenpage 'page' - stevenew - 14-10-2008

Just to see what would happen I took `` out of codeblock 1 and put it in codeblock 2 when I viewed the page no form appeared, put it back in codeblock 1 viewed page, form appears.




contact form plugin within zenpage 'page' - acrylian - 14-10-2008

You of course have to add codeblock 2 to your theme, too. the default theme has only codeblock 1 if I am right and even that not everywhere.




contact form plugin within zenpage 'page' - stevenew - 14-10-2008

OK, I didn't realise that, (that codeblocks 2 & 3 were not in the theme by default), nothing to do with the error. Back to square one then...




contact form plugin within zenpage 'page' - stevenew - 14-10-2008

Ok, does this mean anything: I load the zenpage page with the contact form, I just fill in one of the required fields 'Name', 'E-mail', 'Enter captcha' or 'Subject', and send it, the form refreshes with the message in red telling me to fill in the required fields. Thus the form reaches the next stage as it should. But if I only fill in the required field 'Message' and send it, I get the error message the same as when sending a correctly filled in form.




contact form plugin within zenpage 'page' - acrylian - 14-10-2008

I am sorry, I have no idea currently. (Also the form now sends mails for me, they strangely do not arrive correctly...).