Evolution 1.0.10 - MODX Community Forums https://forums.modx.com/board/?board=285 <![CDATA[How to get a link to a TV-image in Ditto?]]> https://forums.modx.com/thread/103063/how-to-get-a-link-to-a-tv-image-in-ditto#dis-post-554866 - Ditto 2.1.0
- Template variable [*image160x180*], Input Type:Image, Widget:Image

Chunk "ImageList":
<ul>
[[Ditto? &tpl=`myItem` &parent=`[*id*]`]]
</ul>

Chunk "myItem":
<li>
<a href="[+image160x180+]"> </a>
</li>

As I suppose, the chunk "ImageList" should produce such a code:
<ul>
<li>
<a href="dir1/dir2/image1.jpg"> </a>
</li>
<li>
<a href="dir1/dir2/image2.jpg"> </a>
</li>
...
<ul>

In fact it produces:
<ul>
<li>
<a href="<img src="" alt="some text" "> </a>
</li>
...
<ul>

That is, no link to image is put into "href", instead, it puts tag <src> with all attributes.

How to get a link to a TV-image in Ditto, so it can be put into attribute "href"?
Thanks in advance!]]>
https://forums.modx.com/thread/103063/how-to-get-a-link-to-a-tv-image-in-ditto#dis-post-554866 Tue, 31 Oct 2017 08:23:23 +0000 https://forums.modx.com/thread/103063/how-to-get-a-link-to-a-tv-image-in-ditto#dis-post-554866
<![CDATA[PHP: object type lost when retrieve from $_SESSION]]> https://forums.modx.com/thread/96000/php-object-type-lost-when-retrieve-from-session#dis-post-519554
In this snippet I have tried to add
function my_autoloader() {
include ('/srv/www/websites/dokpe/cms/php/MYSQL_Recordset.php');
}
spl_autoload_register('my_autoloader');
but this does not change anything.

Thanks for any help
François]]>
https://forums.modx.com/thread/96000/php-object-type-lost-when-retrieve-from-session#dis-post-519554 Fri, 30 Jan 2015 09:12:53 +0000 https://forums.modx.com/thread/96000/php-object-type-lost-when-retrieve-from-session#dis-post-519554
<![CDATA[To bring another page via the link id]]> https://forums.modx.com/thread/95744/to-bring-another-page-via-the-link-id#dis-post-518262
has the structure
Level 1 (first pages)
Leavel 2 (id = 1)
Leavel 2 (id = 2)

Level 1 (second pages)
Leavel 2 (id = 3)
Leavel 2 (id = 4)

in first pages have chunk with structure and second page has it too

first pages have links where you need to install the appropriate id for the second page
Level 1 (first pages)
Leavel 2 (id = 1) click (open id=3)
Leavel 2 (id = 2) click (open id=4)

There are a ton plugin or snippet to implement this option, or you need to create TV?

When you create a parameter TV and inserted into a link that opens a blank page - a white sheet, that is three times the template page did not load]]>
https://forums.modx.com/thread/95744/to-bring-another-page-via-the-link-id#dis-post-518262 Sun, 11 Jan 2015 07:31:29 +0000 https://forums.modx.com/thread/95744/to-bring-another-page-via-the-link-id#dis-post-518262
<![CDATA[Ditto evo modx conclusion of the parent content]]> https://forums.modx.com/thread/95700/ditto-evo-modx-conclusion-of-the-parent-content#dis-post-518247
I use your CMS and ran into a problem

It is impossible to separate the parent to deduce content to the page, all content is displayed in full on all pages

Level structure:

level 1
--level 2
level 1
--level 2
--level 2
--level 2
--level 2

level 1
--level 2



small code:
[[Ditto? [u]&parents=`[*parent*]`[/u] &id=`portfolio-content` &depth=`1` &tpl=`portfolio-content`]]


This code displays the entire contents of the pages, but it is necessary for each page of your
]]>
https://forums.modx.com/thread/95700/ditto-evo-modx-conclusion-of-the-parent-content#dis-post-518247 Sat, 10 Jan 2015 11:35:00 +0000 https://forums.modx.com/thread/95700/ditto-evo-modx-conclusion-of-the-parent-content#dis-post-518247
<![CDATA[after moving, no URLs except for the forst page don't work]]> https://forums.modx.com/thread/95256/after-moving-no-urls-except-for-the-forst-page-don-t-work#dis-post-515724 I am moving site on ModX Evo 1.0.10-d5.3
trying to make it to work on local machine
Apache/2.4.7 (Ubuntu)
PHP Version 5.5.9-1ubuntu4.5
Mysql 5.5.40

what is done:
Exported DB, changed mysql login information in config. manager starts working at this moment.
cleared cache.

works only the first page. friendly URLs are on, it gives 404 with them. on turning them off and using index.php?q=..., browser gives redirect loop

.htaccess in the root directory

RewriteEngine On
RewriteBase /

could anyone give me a clue, please?
thanks )]]>
https://forums.modx.com/thread/95256/after-moving-no-urls-except-for-the-forst-page-don-t-work#dis-post-515724 Wed, 26 Nov 2014 02:09:57 +0000 https://forums.modx.com/thread/95256/after-moving-no-urls-except-for-the-forst-page-don-t-work#dis-post-515724
<![CDATA[ManagerLogin snippet problem login]]> https://forums.modx.com/thread/84299/managerlogin-snippet-problem-login#dis-post-505283
I think the problem is on line 139 to line 141 of file managerlogin.inc.php dont do the correct for new Password hash algorithm in manager.

if ($usr_password != md5($form_password)) {
$errors[] = $_lang['err_invalid_passwd'];
}

Any ideas...?

Thanks]]>
https://forums.modx.com/thread/84299/managerlogin-snippet-problem-login#dis-post-505283 Fri, 01 Aug 2014 11:31:38 +0000 https://forums.modx.com/thread/84299/managerlogin-snippet-problem-login#dis-post-505283
<![CDATA[Error types and PHP < 5.3 (E_DEPRECATED and E_USER_DEPRECATED)]]> https://forums.modx.com/thread/84905/error-types-and-php-5-3-e-deprecated-and-e-user-deprecated#dis-post-500970
I recently upgraded from 1.0.7 to 1.0.10 and ran into a problem with the PHP error types. While using a snippet as a custom TV input a PHP Notice was thrown, along with the message "Use of undefined constant E_USER_DEPRECATED - assumed 'E_USER_DEPRECATED'".

The required PHP version for 1.0.9 and 1.0.10 silently levelled up from 4.3.3+ to 5.3.3+ and since my host (Strato.de) is using PHP 5.2.17, I'm using a PHP version in which "E_DEPRECATED" and "E_USER_DEPRECATED" don't exist.

I my situation it was enough to insert
if(!defined('E_DEPRECATED')) { define('E_DEPRECATED',''); }
if(!defined('E_USER_DEPRECATED')) { define('E_USER_DEPRECATED',''); }

above line 2874 in document.parser.class.inc.php to get rid of that message.

Should I report that behaviour as a bug or is it not a bug because I didn't fullfill the requirements?]]>
https://forums.modx.com/thread/84905/error-types-and-php-5-3-e-deprecated-and-e-user-deprecated#dis-post-500970 Thu, 19 Jun 2014 11:06:35 +0000 https://forums.modx.com/thread/84905/error-types-and-php-5-3-e-deprecated-and-e-user-deprecated#dis-post-500970
<![CDATA[Jot issues]]> https://forums.modx.com/thread/91082/jot-issues#dis-post-499168
if anyone has ideas on a fix please let me know. I hate to reCaptcha a darn blog comment box but that may be what I gotta do.]]>
https://forums.modx.com/thread/91082/jot-issues#dis-post-499168 Mon, 02 Jun 2014 06:54:09 +0000 https://forums.modx.com/thread/91082/jot-issues#dis-post-499168
<![CDATA[ [UPDATE] PHP/MySQL errors on FatCow site]]> https://forums.modx.com/thread/90609/update-php-mysql-errors-on-fatcow-site#dis-post-498147
Currently running Evolution v1.0.10 at eessc.org with PHP 5.3 (hosted by Fatcow). Built the site on a GoDaddy server, with same version of Evolution, which ran without issue. One the site was fully developed, I installed MODx on the Fatcow server without issue. The site ran, but crashed after about seven hours of uptime and displayed an Internal Server Error (visible at eessc.org/index.php).

Because of this, and after referencing here: (http://forums.modx.com/thread/36031/step-by-step-instructions-for-installing-0-9-6-3-with-fatcow-com-as-the-host), I reinstalled MODx, but using the latin1_swedish_ci collation, then rebuilt the site. This worked, but this time the site crashed again after about six days and began displaying the same error mentioned above, seen at eessc.org/index.php

The PHP error log seems to display the following three entries most frequently:

20140430T202309: eessc.org/manager/processors/login.processor.php
PHP Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /hermes/waloraweb026/b2407/moo.eessc/manager/includes/settings.inc.php on line 10
PHP Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /hermes/waloraweb026/b2407/moo.eessc/manager/includes/settings.inc.php on line 11

and

20140430T210544: eessc.org/index.php
<b>Security Alert!</b> The PHP CGI cannot be accessed directly.

<p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
means that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this webserver,
consult t (cutoff from this point on)

and

20140501T142608: www.eessc.org/index.php
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_09bc233e5e9e375dd7fadcb070655790, O_RDWR) failed: No such file or directory (2) in /hermes/waloraweb026/b2407/moo.eessc/manager/includes/config.inc.php on line 62


Server configuration is as follows:
CGI Active
FrontPage Extensions No
Logs http:////www.fatcow.com/controlpanel/LogFiles.bml
Platform Type Debian
MySQL Version 5.0.91-log
Perl Version 5.8.8
PHP Version 5.3


Although I will be opening a support ticket on their website, Fatcow's technical support team does not appear to be well versed in PHP scripting. Thus, I am hoping someone here might be able to advise me as to the best course of action.

Thanks everyone for your time and assistance.

Ryan Gallant]]>
https://forums.modx.com/thread/90609/update-php-mysql-errors-on-fatcow-site#dis-post-498147 Sat, 17 May 2014 12:23:18 +0000 https://forums.modx.com/thread/90609/update-php-mysql-errors-on-fatcow-site#dis-post-498147
<![CDATA["Fatal error: Call to undefined method synccache::buildCache()" on Manager page with Home Page blank]]> https://forums.modx.com/thread/88930/fatal-error-call-to-undefined-method-synccache-buildcache-on-manager-page-with-home-page-blank#dis-post-489060
All of a sudden yesterday our site (running 1.0.10) started to show a blank Home Page and the Manager Page displayed the following error:

Fatal error: Call to undefined method synccache::buildCache() in /home/source/public_html/manager/includes/document.parser.class.inc.php on line 238

Any ideas how I can go about fixing it?

Glenn

]]>
https://forums.modx.com/thread/88930/fatal-error-call-to-undefined-method-synccache-buildcache-on-manager-page-with-home-page-blank#dis-post-489060 Mon, 03 Feb 2014 03:47:56 +0000 https://forums.modx.com/thread/88930/fatal-error-call-to-undefined-method-synccache-buildcache-on-manager-page-with-home-page-blank#dis-post-489060
<![CDATA[Webusers Block No Longer Expires]]> https://forums.modx.com/thread/88194/webusers-block-no-longer-expires#dis-post-485379
1. I have set the web user to be blocked after three unsuccessful attempts with a wait time of 60 minutes. However, the block does not automatically expire. I have not found anything related to this in bug tracking or in the forums. Where should I start looking to resolve this issue?

2. The forgot password feature does not work (consistently?). They are sent the email with the new password and activation link. They click the link and receive the activation message, but are unable to log in with the supplied password. They end up being blocked; see above.

3. I found this bug: http://tracker.modx.com/issues/9870, Login won't let mgr, web users login with special characters in password and will be applying. Any chance items 1 & 2 could be related?

Any help appreciated.
]]>
https://forums.modx.com/thread/88194/webusers-block-no-longer-expires#dis-post-485379 Mon, 16 Dec 2013 07:18:54 +0000 https://forums.modx.com/thread/88194/webusers-block-no-longer-expires#dis-post-485379
<![CDATA[RSS feed and namespaces?]]> https://forums.modx.com/thread/87918/rss-feed-and-namespaces#dis-post-484031
Would really appreciate if someone could tell me how I can add a namespace to my RSS feed.
I
- am using a ditto call with a tpl for each item
- have set the template to blank
- have set the media type to text/html or application/rss+xml

However, in order to stick to the RSS2 standards, I have introduced a namespace for some custom items but need to register this namespace in the header for the RSS feed but can't see how I can do this. Any ideas?

Thanks]]>
https://forums.modx.com/thread/87918/rss-feed-and-namespaces#dis-post-484031 Tue, 26 Nov 2013 03:52:39 +0000 https://forums.modx.com/thread/87918/rss-feed-and-namespaces#dis-post-484031
<![CDATA[Evo 1.0.10 renders template as HTML instead of saving it]]> https://forums.modx.com/thread/87298/evo-1-0-10-renders-template-as-html-instead-of-saving-it#dis-post-483950
I have tried the usual, clear caches and restarting browsers but it still does this.

Any suggestions as to why?

]]>
https://forums.modx.com/thread/87298/evo-1-0-10-renders-template-as-html-instead-of-saving-it#dis-post-483950 Tue, 26 Nov 2013 02:17:31 +0000 https://forums.modx.com/thread/87298/evo-1-0-10-renders-template-as-html-instead-of-saving-it#dis-post-483950
<![CDATA[Cannot select image in TINYmce file browser]]> https://forums.modx.com/thread/87101/cannot-select-image-in-tinymce-file-browser#dis-post-480062
Would anyone know how to fix this?

Thanks]]>
https://forums.modx.com/thread/87101/cannot-select-image-in-tinymce-file-browser#dis-post-480062 Fri, 11 Oct 2013 06:16:14 +0000 https://forums.modx.com/thread/87101/cannot-select-image-in-tinymce-file-browser#dis-post-480062
<![CDATA[MODx logs me out if I refresh my site in another tab]]> https://forums.modx.com/thread/86999/modx-logs-me-out-if-i-refresh-my-site-in-another-tab#dis-post-479881
So, why is this happening? I used MODx for years without this problem, and since I recently migrated mywebsite.com from a shared environment to a VPS (on the same host), I am guessing there is a new server configuration that Evo is not happy with.

The only thing I've tried is deleting Firefox cookies for mywebsite.com, but that didn't change anything.

(I am the only user logging in during this time.)

More info:
Browser: Firefox 24.0
Web host: Liquid Web VPS
CentOS release 6.4 (Final)
PHP 5.3.26 (cli) (built: Aug 16 2013 19:16:36)
mysql Ver 14.14 Distrib 5.1.68, for unknown-linux-gnu (x86_64) using readline 5.1
Server version: Apache/2.2.25 (Unix)
Server built: Aug 16 2013 19:11:58
Cpanel::Easy::Apache v3.22.4 rev9999
cPanel 11.36.2 (build 4)

And yet more info (if needed):

Compiled in modules:

core.c

mod_authn_file.c

mod_authn_default.c

mod_authz_host.c

mod_authz_groupfile.c

mod_authz_user.c

mod_authz_default.c

mod_auth_basic.c

mod_include.c

mod_filter.c

mod_deflate.c

mod_log_config.c

mod_logio.c

mod_env.c

mod_expires.c

mod_headers.c

mod_unique_id.c

mod_setenvif.c

mod_version.c

mod_proxy.c

mod_proxy_connect.c

mod_proxy_ftp.c

mod_proxy_http.c

mod_proxy_scgi.c

mod_proxy_ajp.c

mod_proxy_balancer.c

mod_ssl.c

prefork.c

http_core.c

mod_mime.c

mod_status.c

mod_autoindex.c

mod_asis.c

mod_info.c

mod_suexec.c

mod_cgi.c

mod_negotiation.c

mod_dir.c

mod_actions.c

mod_userdir.c

mod_alias.c

mod_rewrite.c

mod_so.c




PHP 5.3.26 (cli) (built: Aug 16 2013 19:16:36)

Copyright (c) 1997-2013 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd., and

with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH





[PHP Modules]

bcmath

calendar

Core

ctype

curl

date

dom

ereg

exif

filter

ftp

gd

gettext

hash

imagick

imap

ionCube Loader

json

libxml

magickwand

mbstring

mcrypt

mysql

mysqli

openssl

pcre

PDO

pdo_mysql

pdo_sqlite

Phar

posix

Reflection

session

SimpleXML

sockets

SPL

SQLite

sqlite3

standard

suhosin

tokenizer

xml

xmlreader

xmlwriter

Zend Guard Loader

zip

zlib



Thanks!]]>
https://forums.modx.com/thread/86999/modx-logs-me-out-if-i-refresh-my-site-in-another-tab#dis-post-479881 Thu, 10 Oct 2013 02:54:59 +0000 https://forums.modx.com/thread/86999/modx-logs-me-out-if-i-refresh-my-site-in-another-tab#dis-post-479881
<![CDATA[Quickmanager no scroll in front end]]> https://forums.modx.com/thread/85391/quickmanager-no-scroll-in-front-end#dis-post-478828
I m on a website using EVO 1.0.10, Quickmanager 1.5.5 Tiny 3.5.8.
We cant seem to scroll down to the content as a work around I changed this line in the colobox.css

#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;width:987px;}


to:

#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; width:987px;}


So I deleted:overflow:hidden;

This a bug?

]]>
https://forums.modx.com/thread/85391/quickmanager-no-scroll-in-front-end#dis-post-478828 Thu, 26 Sep 2013 08:11:54 +0000 https://forums.modx.com/thread/85391/quickmanager-no-scroll-in-front-end#dis-post-478828
<![CDATA[sql injection]]> https://forums.modx.com/thread/86745/sql-injection#dis-post-478111
The databaseuser of the database in phpmyadmin has full rights in phpmyadmin (alter, create routine, drop, index, lock tables, select, update, delete, execute, ...)

2 question:


  1. Is it necessary to give the databaseuser all this rights to install modx, ...
  2. is modx evolution protected against sql-injection?


thanks]]>
https://forums.modx.com/thread/86745/sql-injection#dis-post-478111 Wed, 18 Sep 2013 03:06:02 +0000 https://forums.modx.com/thread/86745/sql-injection#dis-post-478111
<![CDATA[« MODX Parse Error »]]> https://forums.modx.com/thread/86587/modx-parse-error#dis-post-477710
Please can someone point me in the right direction. My site is getting the following error:
« MODX Parse Error » etc....which i only seem to get if i am logged in to the backend

Website: http://ladevelopments.co.za

I am completely lost as to what i need to do to fix this.

Thanks a lot

EDIT:
I get the same page error when i try access/edit any page in the backend:
-------------------------------------------------
« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error : include_once(): Unable to allocate memory for pool.
ErrorType[num] : WARNING[2]
File : /var/www/html/ladevelopments/manager/includes/document.parser.class.inc.php
Line : 231
Source : $included= include_once (MODX_BASE_PATH . 'assets/cache/siteCache.idx.php');
Basic info
REQUEST_URI : /
Referer :
User Agent : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
IP : 196.210.179.79
Benchmarks
MySQL : 0.0095 s (0 Requests)
PHP : 0.0749 s
Total : 0.0843 s
Memory : 2.6425704956055 mb

Backtrace
1 DocumentParser->executeParser()
index.php on line 136
2 DocumentParser->getSettings()
manager/includes/document.parser.class.inc.php on line 1219
3 DocumentParser::getSettings()
manager/includes/document.parser.class.inc.php on line 231]]>
https://forums.modx.com/thread/86587/modx-parse-error#dis-post-477710 Sat, 14 Sep 2013 07:19:04 +0000 https://forums.modx.com/thread/86587/modx-parse-error#dis-post-477710
<![CDATA[Chrome, ManagerManager pop up javascript error message when editing or saving a resource]]> https://forums.modx.com/thread/86580/chrome-managermanager-pop-up-javascript-error-message-when-editing-or-saving-a-resource#dis-post-477232
I'm on MODX 1.0.10 and I'm using:

1. A Non-admin account (with privileges to create/edit resources)
2. ManagerManager to hide/customize what the non-admin user can edit

This problem appears quite randomly on Chrome. When editing a resource, sometimes what you see in the following screenshot (see attachment) appears - that "couldn't find parent document's name!" message. If not that, when trying to save, a pop up will appear saying you don't have enough privileges.

What I do know is when you clear Chrome's cache, the problem goes away. I don't exactly know what triggers it (could it be multiple log-ins, multiple logins from multiple computers, expired logins - I really don't know.)

The last thing I remember doing was setting up this account (so that meant me accessing it from another computer and testing it out) before giving it to someone else for them to use.

Firefox doesn't exhibit this, just Chrome.

An admin-role account doesn't show this problem either.

]]>
https://forums.modx.com/thread/86580/chrome-managermanager-pop-up-javascript-error-message-when-editing-or-saving-a-resource#dis-post-477232 Tue, 10 Sep 2013 02:10:40 +0000 https://forums.modx.com/thread/86580/chrome-managermanager-pop-up-javascript-error-message-when-editing-or-saving-a-resource#dis-post-477232
<![CDATA[load tv error]]> https://forums.modx.com/thread/85471/load-tv-error#dis-post-476563
can any body help me ?? i get error when my tv load sintak form snipet ..

]]>
https://forums.modx.com/thread/85471/load-tv-error#dis-post-476563 Tue, 03 Sep 2013 09:11:53 +0000 https://forums.modx.com/thread/85471/load-tv-error#dis-post-476563