Editor example Always shown checkbox
Editor example Always shown checkbox
Hello, I am new and installed the Editor PHP package, created a database, executed the MySQL and edited the config.php but when I try the example "Always shown checkbox" I get an error, below are the detailes, is this something familiar? Thanks!
Warning: require_once(/var/www/hbrs/php/lib/Vendor/htmLawed/htmLawed.php): failed to open stream: No such file or directory in /var/www/hbrs/php/Vendor/Htmlaw.php on line 70
Call Stack
Time Memory Function Location
1 0.0001 239808 {main}( ) ../checkbox.php:0
2 0.0017 394400 DataTables\Editor->process( ) ../checkbox.php:33
3 0.0017 394744 DataTables\Editor->_process( ) ../Editor.php:677
4 0.0019 399544 DataTables\Editor->_insert( ) ../Editor.php:924
5 0.0019 399912 DataTables\Editor->_insert_or_update( ) ../Editor.php:1071
6 0.0019 400360 DataTables\Editor->_insert_or_update_table( ) ../Editor.php:1639
7 0.0020 401256 DataTables\Editor\Field->val( ) ../Editor.php:1749
8 0.0020 401368 DataTables\Editor\Field->xssSafety( ) ../Field.php:615
9 0.0021 407552 DataTables\Vendor\Htmlaw::filter( ) ../Field.php:720
This question has an accepted answers - jump to answer
Answers
What is interesting there is that the
require
line looks for a directory calledlib/
in the path, but that isn't present in the "No such file or directory" error string.In what directory does your PHP file exist? Also is there such a file as
/var/www/hbrs/php/lib/Vendor/htmLawed/htmLawed.php
(i.e. with thelib/
) on your server?Thanks,
Allan
Dear Allan, thank you for your reply, today I tried on a windows computer and I had no problems at all, so maybe this is related to Macbook and Chrome for Macbook (where I had the problem) and not just in the always shown checkbox example but I noticed later I had this in all forms.
And yes I checked the file was actually there including the lib/
Weird! I'll try downloading the demo package on a Mac shortly and see if I can spot anything odd going on. Good to hear you've got it working in Windows tho.
Allan
I don't have any problems on my macbook anymore but I changed nothing far as I know?! Thanks for your time!
I tried it on a Mac earlier this afternoon as well with MAMP and it seemed to work okay. You had me really worried for a moment that I'd bodged the packaging! I'm not sure what went wrong before, but if its working now... I'll keep an eye out for anyone else reporting a similar issue.
Allan
I'm sorry! I have no idea what it was