[dev] syntaxhighlighter.js missing

Sebastian Birnbach birnbacs at gmail.com
Thu Jul 27 12:05:16 UTC 2017


2017-07-27 12:50 GMT+02:00 Jan Schneider <jan at horde.org>:

> Zitat von Sebastian Birnbach <birnbacs at gmail.com>:
>
> 2017-07-25 13:09 GMT+02:00 Jan Schneider <jan at horde.org>:
>>
>>
>>> Zitat von Sebastian Birnbach <birnbacs at gmail.com>:
>>>
>>> I migrated the whups SQL tables from a dying Horde 5.2.11 installation
>>> to a
>>>
>>>> fresher 5.2.15 system. Now, when I do a search in whups I get the proper
>>>> result - but it takes a incredibly long time (~20 sec) and the following
>>>> error is thrown:
>>>>
>>>> "/usr/local/www/apache24/data/js/syntaxhighlighter/scripts/s
>>>> yntaxhighlighter.js
>>>> does not exist or is not readable". Well, the file is not there and
>>>> neither
>>>> was it present on the source system which does not show the problem.
>>>>
>>>> Reflected in /var/log/messages:
>>>> Jul 21 00:22:50 gollum HORDE: [wicked] PHP ERROR: filemtime(): stat
>>>> failed
>>>> for
>>>> /usr/local/www/apache24/data/lib/../js/syntaxhighlighter/scr
>>>> ipts/syntaxhighlighter.js
>>>> [pid 14627 on line 117 of "/usr/local/share/pear/Horde/S
>>>> cript/File.php"]
>>>> Jul 21 00:23:06 gollum HORDE: [wicked]
>>>> /usr/local/www/apache24/data/lib/../js/syntaxhighlighter/scr
>>>> ipts/syntaxhighlighter.js
>>>> does not exist or is not readable. [pid 14627 on line 37 of
>>>> "/usr/local/share/pear/Horde/JavascriptMinify/Null.php"]
>>>>
>>>> The error goes away when I disable JS caching in config/conf.php.
>>>> Caching
>>>>
>>>>
>>> And is the file loaded then? From which location?
>>>
>>>
>> No the file does not get loaded. It does not even exist on my system. Nor
>> did it on the old system.
>>
>> Horde attempts to access
>> /usr/local/www/apache24/data/lib/../js/syntaxhighlighter/scr
>> ipts/syntaxhighlighter.js
>> (which is a bit odd with the '/../' in the middle). The directory
>> /usr/local/www/apache24/data/lib/../js/syntaxhighlighter/scripts/ does
>> exist - but not the file syntaxhighlighter.js inside.
>>
>> I wonder how this may be related to caching.
>>
>
> Anyway, it's part of the Horde_Mime_Viewer package.
>
> I checked and found that there were several files missing from package
pear.horde.org/Horde_Mime_Viewer:

/usr/local/www/apache24/data/js/syntaxhighlighter/scripts/syntaxhighlighter.js
/usr/local/www/apache24/data/js/syntaxhighlighter/scripts/syntaxhighlighter.js.map
/usr/local/www/apache24/data/js/syntaxhighlighter/src/shAutoloader.js
/usr/local/www/apache24/data/js/syntaxhighlighter/src/shCore.js
/usr/local/www/apache24/data/js/syntaxhighlighter/src/shLegacy.js
/usr/local/www/apache24/data/js/syntaxhighlighter/src/syntaxhighlighter.js
/usr/local/www/apache24/data/js/syntaxhighlighter/src/syntaxhighlighter.js.map
/usr/local/www/apache24/data/js/syntaxhighlighter/styles/theme.css

I finally chose to force-install the package and everything works fine with
the JS cache.

Thanks, Jan!


More information about the dev mailing list