#microformats 2024-06-12

2024-06-12 UTC
#
[KevinMarks]
Tantek had php, js, c and java code in one file iirc
#
[Joe_Crawford]
Quite literal code-switching.
#
[KevinMarks]
Oh, Ruby not c
#
[KevinMarks]
if ("00"==false) {/*javascript*/}
#
[KevinMarks]
else if ("0"==false) {/*php*/}
#
[KevinMarks]
else if (0==false) {/*c*/}
#
[KevinMarks]
else {/*ruby*/}```
#
[KevinMarks]
Ruby and C
#
[tantek]
[Joe_Crawford] you gave me the idea that upgrading the cassis.js purely in place may solve the problem. so now I'm getting to a "no tidy" error which is curious because the PHPInfo says tidy is installed
#
[Joe_Crawford]
classloader may behave different the way you load the code
#
[Joe_Crawford]
some interesting debugging ideas here https://stackoverflow.com/questions/21435379/php-tidy-class-not-found-error
#
[tantek]
yeah a lot of that was helpful in the PHP5 days. less so since PHP7
#
[Joe_Crawford]
```<?php echo extension_loaded('tidy') ? "LOADED" : "NOT LOADED";```
#
[Joe_Crawford]
that do anything interesting - in the file in question - and in a new file?
#
[tantek]
worth a shot
#
[tantek]
tidy not loaded
#
[Joe_Crawford]
and in a new `.php` file?
#
[tantek]
I filed a support ticket asking them to enable the PHP tidy extension, noting that both class_exists('tidy') and extension_loaded('tidy') return false currently.
#
[tantek]
I expect that should be enough for them to either do some config option thing I am missing, or otherwise dive into why are those returning false when the phpinfo claims tidy is enabled
#
[tantek]
at least it's not giving 500 any more so that part is fixed
#
[Joe_Crawford]
in some envs you might be able to add to .htaccess and/or .user.ini and have an effect, too.
#
[tantek]
these are the aspects of backend web dev that make web dev frustrating tbh. all sorts of custom (implementation-specific, language-specific) configuration things
#
[Joe_Crawford]
I hope you get clarity from support. :crossed_fingers:
#
[tantek]
yes, same. also why I'm ok with shared hosting where the host manages a bunch of stuff (and thus can be asked to provide support for it) rather than purely running my own machine
eitilt, thepaperpilot, [jeremycherfas], [qubyte], chimo, [schmarty], barnaby, srijan, sebbu, thepaperpilot_, gRegor, JSharp, phae, [marksuth] and gRegorLove_ joined the channel