Editor example Always shown checkbox

Editor example Always shown checkbox

mfmf Posts: 41Questions: 11Answers: 0

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

  • allanallan Posts: 63,252Questions: 1Answers: 10,420 Site admin

    What is interesting there is that the require line looks for a directory called lib/ 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 the lib/) on your server?

    Thanks,
    Allan

  • mfmf Posts: 41Questions: 11Answers: 0

    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/

  • allanallan Posts: 63,252Questions: 1Answers: 10,420 Site admin

    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

  • mfmf Posts: 41Questions: 11Answers: 0

    I don't have any problems on my macbook anymore but I changed nothing far as I know?! Thanks for your time!

  • allanallan Posts: 63,252Questions: 1Answers: 10,420 Site admin
    Answer ✓

    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

  • mfmf Posts: 41Questions: 11Answers: 0

    I'm sorry! I have no idea what it was

This discussion has been closed.