andrey613 / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

PFCB configuration error #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the php-form-builder-class zip
2. Put the php-form-builder-class inside a proyect in htdocs. 
3. Try the Hello World example in an index.php page outside the 
php-form-builder-class folder.

What is the expected output? What do you see instead?

Error message: "The jsAttributesPath form attribute contains an invalid path: 
/php-form-builder-class/includes", which I think is the correct path. 

What version of the product are you using? On what operating system?
1.1.4

Please provide any additional information below.

I don't know how to use the setAttributes function in order to set the 
jsAttributesPath neither how to "place this symbolic link at your server's 
document root.", I couldn't find any examples on how to do any of these things. 

Original issue reported on code.google.com by rfc1...@gmail.com on 15 Apr 2011 at 11:07

GoogleCodeExporter commented 8 years ago
Please try the following fix...

Change line 3532 from...
if(strpos($this->phpIncludesPath, $_SERVER['DOCUMENT_ROOT']))
to...
if(strpos($this->phpIncludesPath, $_SERVER['DOCUMENT_ROOT']) === 0)

- Andrew

Original comment by ajporterfield@gmail.com on 16 Apr 2011 at 6:32

GoogleCodeExporter commented 8 years ago
The solution worked, although now I'm trying to use the new 2.0 version.

So the issue can be closed now. 

Original comment by rfc1...@gmail.com on 10 May 2011 at 9:03

GoogleCodeExporter commented 8 years ago

Original comment by ajporterfield@gmail.com on 14 May 2011 at 3:19