-
☆ A M B ☆
- 24,524 Posts
I just checked out the latest from the trunk, and did some changes. Everything seemed to work OK. I went back to the Manager to check something out, and now for no reason I can discern everything suddenly began giving a totally blank page. Backend, frontend, whatever. Blank, nothing at all in the source.
-
☆ A M B ☆
- 24,524 Posts
I manually deleted two cached page files, and reverted my idx file. Now I get this error in the frontend:
PHP error debug
Error: Header may not contain more than a single header, new line detected.
Error type/ Nr.: Warning - 2
File: /Applications/MAMP/htdocs/trunk/manager/includes/document.parser.class.inc.php
Line: 376
Line 376 source: header($header);
The manager is still blank.
-
☆ A M B ☆
- 24,524 Posts
As far as I can figure, this happens after using the new-style weblink (actually using the link in the front end, not creating the link). I have exactly the same patches on a stock 0.9.2.1 installation working with no problems at all.
-
MODX Staff
- 12,272 Posts
Susan I’m confused as to what’s causing what to happen... can you clarify?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
Not at this time. I’m going to re-create a clean install from svn and start over, and see exactly when this happens. As far as I can tell, as soon as I actually clicked on the link I had just created, the whole site went blank, although it did send me to the desired page. It wasn’t until I returned to the Manager and started to edit a document that everything quit.
-
☆ A M B ☆
- 24,524 Posts
It wasn’t my fault!!!! In the language file, at least the English one, the last item in the file doesn’t have a ; at the end:
$_lang['fe_editor_lang_message'] = 'Choose a language for the editor to use when used as a front-end editor.'
Not noticing this, I added my "cannot set link" message at the end. And that totally broke the entire site.
Come to think of it...one of the things that slightly erks me about the language files is the lack of consistency. Should all the values be in double-quotes or single-quotes? Granted, they all work anyways...but I guess I’m a stickler for being consistent on how code is written.
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
MODX Staff
- 12,272 Posts
If we’re on the subject of language files, man could it use a serious cleaning out.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Eek. There are 1,012 definitions in the current English file. (Incidentally, 314 use double quotes)
I assume that’s a case of searching through the code for each of the suspect statements?
So if a search for "test_page" (without the quotes) came back with just the lang/ files, we’d knock the line out?
(Possibly making a list of removed statements so that our friends in other languages can change things).
I’ll volunteer, but only if I can also contribute english_british (en-GB) to the core distribution...