Evolution 1.0.9 - MODX Community Forums https://forums.modx.com/board/?board=283 <![CDATA[problem with EvoBabel]]> https://forums.modx.com/thread/100504/problem-with-evobabel#dis-post-543122 I'm a site editor, total n00b. Today I just edited a main page. Changed content text from russian to Ukrainian (copy/paste). Then after saving I tried to preview and the error screen showed up.

Error : Undefined offset: 0
Error information
ErrorType[num] NOTICE[8]
File .../assets/snippets/evoBabel/evoBabel.class.php
Line 250
Source return $res[0];
Current Plugin evoBabel(OnWebPageInit)

index.php on line 145
manager/includes/document.parser.class.inc.php on line 1720
DocumentParser->evalPlugin(string $var1, array $var2)
manager/includes/document.parser.class.inc.php on line 3716
manager/includes/document.parser.class.inc.php on line 1022
evoBabel->__construct(DocumentParser $var1, 0, array $var3)
manager/includes/document.parser.class.inc.php(1022) : eval()'d code on line 12
assets/snippets/evoBabel/evoBabel.class.php on line 36

The site loads hell slow but show everything right in all languages. The evoBabelLexicon window in ModX is pale yellow and shows error:

Error : Undefined variable: langs

I don't think it is something terrible, but I'll probably be cut in half (tomorrow or next Monday) for messing up. Please help.

I use ModX Evo 1.1RC-d7.1.5 . This is some ukrainian dev edition.]]>
https://forums.modx.com/thread/100504/problem-with-evobabel#dis-post-543122 Thu, 07 Jul 2016 01:51:20 +0000 https://forums.modx.com/thread/100504/problem-with-evobabel#dis-post-543122
<![CDATA[PHP version for Evo]]> https://forums.modx.com/thread/99433/php-version-for-evo#dis-post-537894 https://forums.modx.com/thread/99433/php-version-for-evo#dis-post-537894 Thu, 04 Feb 2016 04:05:27 +0000 https://forums.modx.com/thread/99433/php-version-for-evo#dis-post-537894 <![CDATA[Revolution Templates on Evolution?]]> https://forums.modx.com/thread/97443/revolution-templates-on-evolution#dis-post-526971
I am totally new to Modex.
I had a super functional site with Etomite (never pretty because we are design challenged) so I have installed Evolution as the most compatible choice for importing my data.
Looking around for Evolution templates, there doesn't seem to be the choice for Evolution that there is for Revolution; I am wondering how hard is it to adapt a revolution template to Evolution?
What are the gotcha's that I should look out for?
This might be a really dumb question and apologies if it is
thanks in advance]]>
https://forums.modx.com/thread/97443/revolution-templates-on-evolution#dis-post-526971 Sun, 14 Jun 2015 06:36:01 +0000 https://forums.modx.com/thread/97443/revolution-templates-on-evolution#dis-post-526971
<![CDATA[A URL Injection hides itself]]> https://forums.modx.com/thread/96958/a-url-injection-hides-itself?page=2#dis-post-525068
A friends website is labeled by Google as "This site may be hacked."

I thought that I have located it in the sql database.

Because I have made a brand new setup. I even did not bring any css or js scripts and theme files that makes the website horrible. I did everything on my localhost.

I just imported the sql database but I still can not find the malicious code. The page is still there about pharmacy. I have also looked for base64 codes in the database and in the files, still no luck.

Do you have any idea that where this code may be and in what shape. The hacker hided it well.]]>
https://forums.modx.com/thread/96958/a-url-injection-hides-itself?page=2#dis-post-525068 Thu, 30 Apr 2015 03:44:09 +0000 https://forums.modx.com/thread/96958/a-url-injection-hides-itself?page=2#dis-post-525068
<![CDATA[How to use phpthumb in phx:tv]]> https://forums.modx.com/thread/95366/how-to-use-phpthumb-in-phx-tv#dis-post-516330
I am using modx evo 1.0.15. phpthumb comes default with this version and some versions earlier. I was wondering how can I use built in phpthumb with phx:tv.

I am calling a tv with phx like this:

<img src="[+phx:tv=`[[UltimateParent? &topLevel=`3`]]?myimage`+]" alt="" />

Please suggest how can I use phpthumb here.]]>
https://forums.modx.com/thread/95366/how-to-use-phpthumb-in-phx-tv#dis-post-516330 Mon, 08 Dec 2014 02:35:46 +0000 https://forums.modx.com/thread/95366/how-to-use-phpthumb-in-phx-tv#dis-post-516330
<![CDATA[MODX Parse Error alias_visible]]> https://forums.modx.com/thread/94271/modx-parse-error-alias-visible#dis-post-511023
Thank you in advance for any suggestions.

MODX encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Unknown column 'alias_visible' in 'field list' »

SQL > UPDATE `kstephen_mod02`.`modx_site_content` SET introtext='', content='

\r\n', pagetitle='KRD', longtitle='Orlando, Florida', type='document', description='Read what.', alias='krd', link_attributes='', isfolder=0, richtext=1, published=1, pub_date=0, unpub_date=0, parent=1, template=8, menuindex=7, searchable=1, cacheable=1, editedby=1, editedon=1411393017, publishedon=publishedon, publishedby=publishedby, contentType='text/html', content_dispo=0, donthit=0, menutitle='krd', hidemenu=0, alias_visible=1 WHERE id='20'

Basic info
REQUEST_URI : http://kimberlyrobertsdesign.com/manager/index.php
Manager action : 5 - Saving resource
Referer : http://kimberlyrobertsdesign.com/manager/index.php?id=20&a=27
User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/6.1.6 Safari/537.78.2
IP :
MySQL : 0.0089 s (6 Requests)
PHP : 0.0524 s
Total : 0.0613 s
Memory : 3.50103759766 mb


1 include_once()
manager/index.php on line 299
2 DBAPI->update()
manager/processors/save_content.processor.php on line 526
3 DBAPI->query()
manager/includes/extenders/dbapi.mysql.class.inc.php on line 263]]>
https://forums.modx.com/thread/94271/modx-parse-error-alias-visible#dis-post-511023 Tue, 23 Sep 2014 01:11:07 +0000 https://forums.modx.com/thread/94271/modx-parse-error-alias-visible#dis-post-511023
<![CDATA[Inserting form data into a custom table using $modx->db->insert]]> https://forums.modx.com/thread/93085/inserting-form-data-into-a-custom-table-using-modx--db--insert#dis-post-508426 I am trying to insert posted form data into a custom table using the following function/statement which is part of a larger php processing script. The script runs without error, however the database table is not updated.
I would be very grateful if someone could check this code and advise where my errors are.

if (($name) && ($phone) && ($email) && ($id)) {
	function add_student($name, $phone, $email, $id) {
        global $modx;
	$session_id = intval($id, 10);
        $query = $modx->db->insert `rsacours_modx`.`xtra_students`(`name`, `phone`, `email`, `session_id`) VALUES ('$name', '$phone', '$email', '$session_id');  
        return $query;

https://forums.modx.com/thread/93085/inserting-form-data-into-a-custom-table-using-modx--db--insert#dis-post-508426 Tue, 09 Sep 2014 10:12:03 +0000 https://forums.modx.com/thread/93085/inserting-form-data-into-a-custom-table-using-modx--db--insert#dis-post-508426
<![CDATA[1.0.12 - Updating MySQL database using if(....) conditional]]> https://forums.modx.com/thread/91805/1-0-12---updating-mysql-database-using-if-conditional#dis-post-501785 The original MySQL update statement below works fine without the if (....) part around it, but with the if (....), the database doesn't update. However, the rest of the processing script continues to complete (ie; sends emails etc;)
Any guidance on my syntax would be greatly received.

$modx = new DocumentParser;

// ******** UPDATE SESSION 1 PLACES **********

if (isset($RSAchecked) && ($RSAchecked === 1)) {

$update_seats1 = update_places1($id1, $seats);	
function update_places1($id1, $seats) {        
	global $modx;		
	$table = "`prefix_modx`.`xtra_session`";	    
	$update_seats1 = '`places` -' .$seats;		
	$result = $modx->db->update( '`places` = ' . $update_seats1, $table, '`id` = ' . intval($id1, 10) . ' AND `places` >= ' . $seats );        
	return $result;	         // Returns 'true' on success, 'false' on failure.

// ******** UPDATE SESSION 2 PLACES **********

if (isset($RSGchecked) && ($RSGchecked === 1))  {
$update_seats2 = update_places2($id2, $seats);	
function update_places2($id2, $seats) {        
	global $modx;		
	$table = "`prefix_modx`.`xtra_session`";	    
	$update_seats2 = '`places` -' .$seats;		
	$result = $modx->db->update( '`places` = ' . $update_seats2, $table, '`id` = ' . intval($id2, 10) . ' AND `places` >= ' . $seats );        
	return $result;         // Returns 'true' on success, 'false' on failure.

Rest of the processing script continues here....]]>
https://forums.modx.com/thread/91805/1-0-12---updating-mysql-database-using-if-conditional#dis-post-501785 Mon, 30 Jun 2014 02:28:02 +0000 https://forums.modx.com/thread/91805/1-0-12---updating-mysql-database-using-if-conditional#dis-post-501785
<![CDATA[I just upgraded and I'm already infected!]]> https://forums.modx.com/thread/90049/i-just-upgraded-and-i-m-already-infected#dis-post-495726
Can anyone here point me to the most likely file(s) I should check first to track this down? Any assistance appreciated!

https://forums.modx.com/thread/90049/i-just-upgraded-and-i-m-already-infected#dis-post-495726 Wed, 23 Apr 2014 03:30:42 +0000 https://forums.modx.com/thread/90049/i-just-upgraded-and-i-m-already-infected#dis-post-495726
<![CDATA[QuickManager QM conflict with jQuery]]> https://forums.modx.com/thread/89448/quickmanager-qm-conflict-with-jquery#dis-post-492411 http://cl.ly/image/0r1o3M0f3B3M.

Here's the javascript i'm calling

        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
	<script src="./includes/plugin/slider/jquery.flexslider-min.js" type="text/javascript"></script>
	<script src="./includes/plugin/prettyphoto/js/jquery.prettyPhoto.js" type="text/javascript"></script>
	<script src="./includes/plugin/jsocial/jquery.jsocial.js" type="text/javascript"></script>
	<script src="./includes/js/plugins.library.js" type="text/javascript"></script>	
	<script src="./includes/js/init.js" type="text/javascript"></script>

and here's my QM configuration:


My URL: http://era.taiyoagency.com/

I've experimented with with referencing jquery1.9.1.min.js via QM without success and even 1.10. Not sure what else to try.

Can anyone offer any help?

https://forums.modx.com/thread/89448/quickmanager-qm-conflict-with-jquery#dis-post-492411 Tue, 11 Mar 2014 04:44:36 +0000 https://forums.modx.com/thread/89448/quickmanager-qm-conflict-with-jquery#dis-post-492411
<![CDATA[Since upgrading to evo 1.0.10 Ive lost some of Tiny Mce features]]> https://forums.modx.com/thread/87132/since-upgrading-to-evo-1-0-10-ive-lost-some-of-tiny-mce-features#dis-post-480152
Theme: Full

This gave me extra boxes for Custom plugins and custom Buttons where I could list all the acceptable Tiny Mce features see image
And looked like this on the editor

This feature has now disappeared in 1.0.10

I have tried upgrading to version TinyMCE Rich Text Editor (14) - 3.5.8 a few months ago to try and fix it, but its still the same rubbish 10 selectors in these themes see image

My clients appreciated the extra buttons and tools the previous system offered them.

How can I get them back, but keep my system upto date with the latest modx release.

Luckily I havent upgraded all of my sites as Im not happy with 1.0.10 and may go to WP instead sad

Im also struggling to link my css file to Tiny Mce via the Modx configuration

Can anyone help me please?

https://forums.modx.com/thread/87132/since-upgrading-to-evo-1-0-10-ive-lost-some-of-tiny-mce-features#dis-post-480152 Sun, 13 Oct 2013 05:49:25 +0000 https://forums.modx.com/thread/87132/since-upgrading-to-evo-1-0-10-ive-lost-some-of-tiny-mce-features#dis-post-480152
<![CDATA[1.0.10 - no preview (more) to insert pictures]]> https://forums.modx.com/thread/86540/1-0-10---no-preview-more-to-insert-pictures#dis-post-480063
I use Modx Evo 1.0.10 - If i edit any Site to insert a picture, i can not see my pictures on the webserver. (preview) In TinyMCE i am click on the Image Button, and then on the "manage picture" Icon. I can Upload any/new picture. i can make a new subfolder. but i dont see: my pictures on the webserver, i dont see the picture (*.png, *.jpg et all) I've just uploaded or the new subfolder

The URL from the window is:


where do I look for more infos about this "bug" ( it is not my webserver / no root access. but i can see the logfiles)

thanks for help
https://forums.modx.com/thread/86540/1-0-10---no-preview-more-to-insert-pictures#dis-post-480063 Fri, 11 Oct 2013 06:18:42 +0000 https://forums.modx.com/thread/86540/1-0-10---no-preview-more-to-insert-pictures#dis-post-480063
<![CDATA[TinyMCE produces invalid xhtml with chunks]]> https://forums.modx.com/thread/85667/tinymce-produces-invalid-xhtml-with-chunks#dis-post-480029
since Evo 1.0.9, there is a strange behaviour in tinyMCE. When inserting a line like

it will discard the tags after saving.
Even worse when you write something like
<p>{{someChunk}} some text</p>

it will only remove the trailing tag which results in invalid xhtml.
Did anybody already encounter this bug or can reproduce it or even has a solution for this?

https://forums.modx.com/thread/85667/tinymce-produces-invalid-xhtml-with-chunks#dis-post-480029 Fri, 11 Oct 2013 11:13:35 +0000 https://forums.modx.com/thread/85667/tinymce-produces-invalid-xhtml-with-chunks#dis-post-480029
<![CDATA[@eval $modx- runsnippet not working in php 5.3]]> https://forums.modx.com/thread/85880/eval-modx--runsnippet-not-working-in-php-5-3#dis-post-474593
my snippet code like image below..

i don't know what happen, my code is working in modx evolution 1.0.8 but in modx evolution in 1.0.9 is not working ...

thank you ...

sorry my english is not good ..

https://forums.modx.com/thread/85880/eval-modx--runsnippet-not-working-in-php-5-3#dis-post-474593 Sun, 11 Aug 2013 04:55:28 +0000 https://forums.modx.com/thread/85880/eval-modx--runsnippet-not-working-in-php-5-3#dis-post-474593
<![CDATA[How to pass pagetitle from a ditto call output to a landing page.]]> https://forums.modx.com/thread/86010/how-to-pass-pagetitle-from-a-ditto-call-output-to-a-landing-page#dis-post-474206 https://forums.modx.com/thread/86010/how-to-pass-pagetitle-from-a-ditto-call-output-to-a-landing-page#dis-post-474206 Tue, 06 Aug 2013 06:29:44 +0000 https://forums.modx.com/thread/86010/how-to-pass-pagetitle-from-a-ditto-call-output-to-a-landing-page#dis-post-474206 <![CDATA[MODX evolution (1.0.9) - application caching]]> https://forums.modx.com/thread/85741/modx-evolution-1-0-9---application-caching#dis-post-472673
We recently ran a performance analysis on our server and one of the recommendations that came back was to enable application caching for MODX. Apparently, the Transaction rate (www.ago.net 2.10 trans/sec) could be increased by up to 250x by doing this but it doesn't seem that this is available with MODX evolution (1.0.9). I found documentation for doing this in Revo (http://rtfm.modx.com/display/revolution20/Caching) but don't see anything for Evo. Please advise.

Many thanks,
https://forums.modx.com/thread/85741/modx-evolution-1-0-9---application-caching#dis-post-472673 Tue, 23 Jul 2013 06:05:14 +0000 https://forums.modx.com/thread/85741/modx-evolution-1-0-9---application-caching#dis-post-472673
<![CDATA[format date language]]> https://forums.modx.com/thread/85292/format-date-language#dis-post-471640
i have read several posts of setting the language of a date, but nothing works

how can i set the language of a TV with input type 'date'

https://forums.modx.com/thread/85292/format-date-language#dis-post-471640 Fri, 12 Jul 2013 05:10:40 +0000 https://forums.modx.com/thread/85292/format-date-language#dis-post-471640
<![CDATA[New System Settings - Hash algorithm & Detection level of the PHP error]]> https://forums.modx.com/thread/83269/new-system-settings---hash-algorithm-detection-level-of-the-php-error#dis-post-469825
OK, "Detection level of the PHP error" is probably trial and test but "Hash algorithm" is new on me smiley

https://forums.modx.com/thread/83269/new-system-settings---hash-algorithm-detection-level-of-the-php-error#dis-post-469825 Mon, 24 Jun 2013 08:11:25 +0000 https://forums.modx.com/thread/83269/new-system-settings---hash-algorithm-detection-level-of-the-php-error#dis-post-469825
<![CDATA[Cache injected with code - running 1.0.10?]]> https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468127
Had my client's site hacked, cache injection, was running 1.0.4 at the time. Have now upgraded to 1.0.10 but site got infected again. Any idea why that would be? Seems the cached gets injected with some rubbish javascript code. Deleting the cache solves it, until it gets injected again. Any help much appreciated

https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468127 Wed, 05 Jun 2013 08:59:27 +0000 https://forums.modx.com/thread/84881/cache-injected-with-code---running-1-0-10#dis-post-468127
<![CDATA[How to do preview video?]]> https://forums.modx.com/thread/84804/how-to-do-preview-video#dis-post-467691 I use a jwplayer.]]> https://forums.modx.com/thread/84804/how-to-do-preview-video#dis-post-467691 Thu, 30 May 2013 06:16:41 +0000 https://forums.modx.com/thread/84804/how-to-do-preview-video#dis-post-467691