FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form Tools Core (3.0.0-alpha-20180410) library.php
#1
Hello, there is problem with / and \ on Windows and XAMPP  PHPv 7.20 in path definition:

Quote:Warning: require_once(C:/xampp/htdocs 3/global/library.php): failed to open stream: No such file or directory in C:\xampp\htdocs\f3\modules\form_builder\published\build8.php on line 6

Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs 3/global/library.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\f3\modules\form_builder\published\build8.php on line 6

There is example create build8.php file. Check the 6th line. There is wrong definition of path:
PHP Code:
<?php

/**
 * This file was created by the Form Tools Form Builder module.
 */
require_once("C:\xampp\htdocs\f3/global/library.php");
use 
FormTools\Core;
Core::init(array("auto_logout" => false));
$root_dir Core::getRootDir();
$published_form_id 2;
$filename  "build8.php";
require_once(
"$root_dir/modules/form_builder/form.php"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)