There are several sites with different versions of ModX, let's take MODX Revolution 2.3.3 as a basis.

The UniSender Integration 1.7.4-pl plugin was installed, which integrates ModX and UniSender messaging systems. The plugin is configured, everything works, but there was a snag with the transfer of images (their links) from add. fields.

for example, here's the code to insert an image in the mailing chunk:

<tr><td>[[getImageList? &tvname=`unisender_image`&tpl=`@CODE:[[+images]]`]]</td></tr> 

also tried to insert links using [[*images]] [[+images]] and via getResourseList .

In the above code, an error occurs when saving the document:

 Ошибка /var/www/html/*адрес_сайта*/core/components/gallery/elements/tv/output/ 

Here is the full chunk:

 <tr><td align="center" valign="top"><img height="121" src="[[++logo]]" width="234"></td></tr> <tr><td>[[getImageList? &tvname=`unisender_image`&tpl=`@CODE:[[+images]]`]]</td></tr> <tr><td align="center" ><h3 data-mce-style="box-sizing: border-box; margin: 0.4rem 0px; text-align: center; color: #5f3b0a; font-family: 'Open Sans', arial, helvetica, sans-serif; background-color: #fcf8f4;" style="box-sizing: border-box;margin: 0.4rem 0px;text-align: center;color: #5f3b0a;font-family: 'Open Sans', arial, helvetica, sans-serif;background-color: #fcf8f4;"><span style="background-color:#FFFFFF;">[[+pagetitle]]</span></h3></td></tr> <tr><td> [[+introtext]]</td></tr> 
  • '[2016-07-19 14:28:49] (WARN @ /var/www/html/*/core/model/modx/modparser.class.php: 493) PHP notice: Trying to get property of non-object '[2016-07-19 14:28:49] (WARN @ /connectors/index.php) 42 was requested but no alias was located. '[2016-07-19 14:28:49] (DEBUG @ / connectors/index.php) Message created: 54336138 - TiNaR
  • These errors do nothing at all without specifying what is in the line where Trying to get property of non-object . And at least a small investigation is desirable, what values ​​of the variables led to this result. - Vasis 2:12 pm

1 answer 1

Judging by the data that was written, there are two places where an error may occur:

  1. The ID of the document from which to take the picture is not specified:

     &docid=`[[+id]]` 
  2. The @CODE:[[+images]] construct is best converted into a separate chunk.

  • did not help .. all the same error. - TiNaR