I am trying setup the contact_form plugin within a zenpage 'page', I have `<?php printContactForm(); ?>` 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
Comments
Thanks
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.
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!
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.
So I guess it must be something to do with my server and putting `<?php printContactForm(); ?>` 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:-(
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.
Is it correct that if codeblock 1 is empty codeblock 2 or 3 will not display code?
Has anyone else got the contact_form plugin form working or not working in a zenpage 'page'?
By the way, I still have the omitted fields in the plugin options showing in the form even with the latest working contact_form.
Thanks for all your help.
I'm now setting up a custom page to try and get an active contact form working.
To make the custom page I have taken a copy of the index.php from the zenpage_default template removed everything within the content_left 'div' and put in `<?php printContactForm(); ?>`.
The form loads, I fill out the form, press send but when the page refreshes to confirm the sending of the message, the 'page menu' is missing from the sidebar, I press confirm, the message is sent OK but again when the page refreshes the 'page menu' is missing from the sidebar, only news articles, gallery, archive and rss menus are in the sidebar.
I don't get the error on my local MAMP install
Also actually it should not make any difference if Zenphoto is in the root or not. But you could try....
Maybe I have it in the wrong place?
Also tried a fresh install of zenphoto/zenpage in a sub folder everything default (even a new database for the test) just with the updated contact_form plugin and still got the same error
I guess it must be something with my hosts setup but what?
Something seems not right on your server I would just guess. That function has to be there, too. Especially since I can't reproduce it. It may be a php 4 issue, since I only work on php 5, but if I don't understand it.
sorry but I still get the same error....
I guess I'll go back to trying the custom page and see if I can figure why the 'pages menu' disappears