Hi,
my site has run relatively well in 1.0.8, and older versions before that.
I recently did two things:
1. I copied the 1.0.8 site to a sandbox so I could do some dev on it offline. All config issues sorted ok and it works fine.
2. I then upgraded the site to 1.0.12. Again, all config issues sorted ok and it works fine (apart from twitter, but I see the other post on that).
Until, that is, I tried to create a new resource. I did this by clicking the New Resource button above the tree. The results were as follows:
i. a new empty resource form opened up, as expected.
ii. immediately after that, an alert appeared over the resource form, as follows:
System Alert
An error occurred while loading. Please see the event log for more information
Office==122||Broadband Jargon==117||Special Offer==114||Mobile Broadband ==109||BIG Giveaway==106||Solo PDF's==105||Sharer PDF's==104||Broadband PDF's==103||Maintenance Docs==102||VPN FAQ's ==93||SHDS Docs==90||Flow Docs==89||Install==66||Versatility Docs==65||Mobile- Ts & Cs==64||Recruitment==63||Guide==62||nclusive PDF's==61|Plus PDF's==60||Reseller==59||Business==58||Brochure==57||Infinity Docs==56||Clear Documents==55||Inclusive PDFs==54||
(these pages all exist, are all hidden from the menu and all under the same container.)
I clicked OK to close and went to have a look at Reports > System Events.
There was an entry there, "Parser - Snippet - Creating a resource" (Event Id = 0, User = 'admin').
Opening this gave the following error report:
Warning!
Event Id: 0 Source: Parser - Snippet - Creating a resource Date: 27-10-2013 10:39:43 User: admin
« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
ErrorType[num] : NOTICE[8]
File : /var/www/vhosts/[mydomain.com]/httpdocs/dev2/assets/snippets/ditto/snippet.ditto.php
Line : 1084
Source : Snippet
Basic info
REQUEST_URI : /dev2/manager/index.php?a=4
Manager action :4 - Creating a resource
Referer : http://www.[mydomain.com]/dev2/manager/index.php?a=1&f=tree
User Agent : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
IP : [my.ip.address]
Benchmarks
MySQL : 0.0044 s (11 Requests)
PHP : 0.0465 s
Total : 0.0509 s
Memory : 3.4312744140625 mb
Backtrace
1 include_once()
manager/index.php on line 307
2 renderFormElement()
manager/actions/mutate_content.dynamic.php on line 814
3 ProcessTVCommand()
manager/includes/tmplvars.inc.php on line 47
4 eval()
manager/includes/tmplvars.commands.inc.php on line 64
5 DocumentParser->runSnippet()
manager/includes/tmplvars.commands.inc.php(64) : eval()'d code on line 1
6 DocumentParser->evalSnippet()
manager/includes/document.parser.class.inc.php on line 2400
Can anyone suggest what might be wrong and how I should proceed to remedy this error?
Addendum: just found I get a similar error when simply trying to open an existing resource for editing.
PHP Version 5.4.19
[ed. note: Gav last edited this post 10 years, 6 months ago.]