close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

can not get form builder to work.

Thread began 2/24/2012 1:00 am by sales435980 | Last modified 2/28/2012 7:18 am by Jason Byrnes | 2304 views | 5 replies |

sales435980

can not get form builder to work.

OK, after many hours of trying to get this extention to work. just to install froms without errors. having had to uninstall it 3 times etc.

I have place a form on a page form3.php
I have a seperate page formaction.php which is set for the form action page.
I have a seperate page Thank_you_responce.php just a page with writing on it.

problem is

When I set the form up to use email addresses directly it seems to send and goes to the thank you page.
I do not recieve the emails as my host requires that I send my username and password as well.


When I set the form to use PEAR,
When the form is filled out it show the progress bar and then stays on the same page.
The page is white with no code in source.

I have placed the code to turn on the error reporting at the top of this page.

it displays an error, but not being a PHP geek, I have no idea how to fix it or even which fill to look at.

This is only one of a long list of forms that I have tried, all with the same issue, even if from a blank page.

I need help.



I noted from another thread showthread.php?t=16041 that there may be an issue with Universal email causing php errors when used with PEAR.
I can not try this fix as Universal email came as part of the CSS form builder, I can not see how to access the patch in my webassit account.

Sign in to reply to this post

Jason ByrnesWebAssist

the first error you are getting is the headers already sent error. this error is caused by space between php tags. it is reporting the error at line 4. most likely there is a blank space at the end of line 3:
"?> "
see the following page for details:
showthread.php?t=19285


most of the other errors are related to the first one except fro this error:
open_basedir restriction in effect. File(/usr/bin/pearMail.php) is not within the allowed path(s): (.:/php/includes:/usr/local/pem/vhosts/126152)

1) it looks like you have entered the path to pear as:
/usr/bin/pear

you need to include a trailing /
/usr/bin/pear/

2) it looks like that may not be the correct path to use as the error is reporting that path as being blocked by the open_basedir restriction.

you can try leaving the path to pear blank, that will cause the script to use the path that is defined in the php.ini file, if that does not work, you will need to contact the host to find the correct path to use.

Sign in to reply to this post

sales435980

still no joy

Hi
Thank you for your reply.
The issue with the space was with the code that I cut and pasted from another post on the forum to show the errors. (stupid or what) there was a space at the end of it.

The form is still not working, but getting close.

If I remove the path to Pear I get the following error

Warning: require_once(Mail.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/126152/webspace/httpdocs/bccltd.ie/webassist/email/PEAR_Mail_using_SMTP_php.php on line 113 Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/pem/vhosts/126152/webspace/httpdocs/bccltd.ie/webassist/email/PEAR_Mail_using_SMTP_php.php on line 113

If I put in the / at the end of the path to Pear I get the following error

Warning: require_once(): open_basedir restriction in effect. File(/usr/bin/pear/Mail.php) is not within the allowed path(s): (.:/php/includes:/usr/local/pem/vhosts/126152) in /usr/local/pem/vhosts/126152/webspace/httpdocs/bccltd.ie/webassist/email/PEAR_Mail_using_SMTP_php.php on line 113 Warning: require_once(/usr/bin/pear/Mail.php): failed to open stream: Operation not permitted in /usr/local/pem/vhosts/126152/webspace/httpdocs/bccltd.ie/webassist/email/PEAR_Mail_using_SMTP_php.php on line 113 Fatal error: require_once(): Failed opening required '/usr/bin/pear/Mail.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/pem/vhosts/126152/webspace/httpdocs/bccltd.ie/webassist/email/PEAR_Mail_using_SMTP_php.php on line 113

I have asked the host and they tell me that the path to pear is correct.

Sign in to reply to this post

Jason ByrnesWebAssist

if /usr/bin/pear/ is the correct path, then the host will need to update the php.ini file and modify the open_basedir restriction to allow access top that file. the error you are getting means that the server is not configured to allow access to that folder, the host will need to correct that.

Sign in to reply to this post

sales435980

Still not working

I have just given up and gone to a host that allows smtp mail to be used.

I can assure you that the ini.php file on the host that I was using is set up properly. your extention just does not work with Pear.


Alan

Sign in to reply to this post

Jason ByrnesWebAssist

I have used pear mail a number of times.

the error message was pretty clear:

open_basedir restriction in effect. File(/usr/bin/pear/Mail.php) is not within the allowed path(s): (.:/php/includes:/usr/local/pem/vhosts/126152)



it is saying that the allowed paths for the open_basedir restriction are:
/php/includes
/usr/local/pem/vhosts/126152

and that the file for pear mail:
/usr/bin/pear/Mail.php

is being denied access because it is not in one of those 2 allowed paths.

the host would need to add the path:
/usr/bin/pear/

to the open_basedir restriction for pear to work.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...