D
D
denism3002019-02-13 20:36:26
MODX
denism300, 2019-02-13 20:36:26

How to insert a slash after the site address in modx?

There is a modx with pthumb installed.
The thumbnail is created like this:

<img class="" src="" alt="There is a modx with pthumb installed. The thumbnail is created like this:<img class='' src='[[!pthumb? &input=`[[+image_absolute]]` &options=`w=250&h=250" title="[[+name]]" />

The following errors appear in the console:
[2019-02-13 20:25:52] (ERROR @ /var/www/dmstudio/data/www/dm-studio.h1n.ru/core/components/phpthumbof/model/phpthumbof.class.php : 156) [pThumb] Resource: 1 || Image: (none)
File not found: /var/www/dmstudio/data/www/dm-studio.h1n.ruassets/gallery/3/29.jpg *** Skipping ***

As if the problem is clear - there is no slash in the line
/var/www/dmstudio/data/www/dm-studio.h1n.ruassets/gallery/3/29.jpg

after
/var/www/dmstudio/data/www/dm-studio.h1n.ru

how to fix it?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Anton Tarasov, 2019-02-13
@an-tar

the simplest is to insert thumbnails into the chunk:
A little more difficult - I don’t remember to look at either the path settings for the image [[+image_absolute]], or the pthumb setting, if it exists.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question