Locally cached formula images are generated but don’t load
-
I’ve installed the QuickLaTeX plugin in my academic WordPress homepage. The plugin works fine with local caching deactivated. However, if I activate it, the formulas are no longer rendered – they appear in Mozilla Firefox as if I were just displaying the LaTeX code (but without the math delimiters) in the text. Loading the site with Google Chrome shows a broken image icon next to each unrendered formula (I reckon the latter must be the image caption).
Some data on my problem:
– I have WP Super Cache installed, active and working.
– My WordPress version is 5.1.4 and the server’s PHP version is 5.2.10 – pretty old, I know, but the server admins won’t be able to update it for a while for technical reasons, it’s beyond my control. In any case, I’ve installed version 3.8.3 of the QuickLaTeX plugin, which is supposed to work with the above versions of WordPress and PHP.
– Theql-cache
subfolder of thewp-content
folder has been created with the appropriate permissions and the cached images of the formulas (.svg
and.png
with the “auto” option) are being properly generated and saved in this folder. Just in case, I’ve opened each of the cached image files and they look as they should.
– When running in debug mode, no LaTeX errors appear in the page (nor should they, given that the images are being correctly generated and the site works just fine with local caching disabled).
– I’ve also tried to delete all contents in theql-cache
subfolder and reload the page so the formula images are regenerated. Indeed the latter is successfully done, but the loading problem persists.It seems that QuickLaTeX (or WordPress itself) is unable to read the images in the
ql-cache
folder, which is strange given that they’re able to generate them and save them there.The list of files and subfolders in my
wp-content
folder and the list of files in theql-cache
subfolder follow below, with the respective ownerships and permissions.sh-3.2$ ls -al total 80 drwxrwsr-x+ 7 apache apache 4096 Apr 15 20:16 . drwxrwsr-x+ 7 apache apache 4096 Apr 15 16:57 .. -rwxrwsr-x+ 1 apache apache 1129 Apr 14 19:27 advanced-cache.php drwxrwsr-x+ 5 apache apache 4096 Apr 15 16:57 cache -rwxrwsr-x+ 1 apache apache 28 Apr 2 20:28 index.php drwxrwsr-x+ 13 apache apache 4096 Apr 15 16:34 plugins drwxrwsr-x+ 2 apache apache 4096 Apr 15 17:02 ql-cache drwxrwsr-x+ 7 apache apache 4096 Apr 2 21:08 themes drwxrwsr-x+ 3 apache apache 4096 Apr 15 10:49 uploads -rw-------+ 1 apache apache 3798 Apr 15 16:21 wp-cache-config.php -sh-3.2$ cd ql-cache -sh-3.2$ ls -al total 88 drwxrwsr-x+ 2 apache apache 4096 Apr 15 17:02 . drwxrwsr-x+ 7 apache apache 4096 Apr 15 20:16 .. -rw-rw-r--+ 1 apache apache 501 Apr 15 17:02 quicklatex.com-9b875220881fcf73b90745c03f93b81d_l3.png -rw-rw-r--+ 1 apache apache 2126 Apr 15 17:02 quicklatex.com-9b875220881fcf73b90745c03f93b81d_l3.svg -rw-rw-r--+ 1 apache apache 84 Apr 15 17:02 quicklatex.com-9b875220881fcf73b90745c03f93b81d_l3.txt -rw-rw-r--+ 1 apache apache 511 Apr 15 17:02 quicklatex.com-dc9b3797fac4cc9cb3bdac50689655c5_l3.png -rw-rw-r--+ 1 apache apache 2211 Apr 15 17:02 quicklatex.com-dc9b3797fac4cc9cb3bdac50689655c5_l3.svg -rw-rw-r--+ 1 apache apache 84 Apr 15 17:02 quicklatex.com-dc9b3797fac4cc9cb3bdac50689655c5_l3.txt -rw-rw-r--+ 1 apache apache 454 Apr 15 17:02 quicklatex.com-f6336c3c451bed01ef67bbe7e4b67cd5_l3.png -rw-rw-r--+ 1 apache apache 1051 Apr 15 17:02 quicklatex.com-f6336c3c451bed01ef67bbe7e4b67cd5_l3.svg -rw-rw-r--+ 1 apache apache 84 Apr 15 17:02 quicklatex.com-f6336c3c451bed01ef67bbe7e4b67cd5_l3.txt -sh-3.2$
As one can see, the server (user
apache
) has permission to both read and write the image files in theql-cache
folder.What should I do? The site gets considerably slower with local caching disabled and I’m concerned abut the fact that QuickLaTeX server’s policy is to block the IP of sites with cache continuously disabled for at least six months, which will also prevent the formulas from being rendered. This is not a problem yet since I’m starting to use the plugin now, but it will become so in the future.
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by . Reason: Small grammar fixes
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by . Reason: Added attempted workaround
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Locally cached formula images are generated but don’t load’ is closed to new replies.