Dec 04, 2008, 12:52 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1]   Go Down
  Print  
Author Topic: New User throws Parse Error and cannot Publish pages  (Read 2822 times)
0 Members and 1 Guest are viewing this topic.
jamesqh
Jr. Member
*
Posts: 3

I love MODx!


« on: Mar 05, 2006, 10:25 AM »

Hi all,

I've just installed the latest version on my Redhat Linux machine and have come across a couple of problems...

The first is:  When I go to Manage Users and then click "New user" I get the error:

Parse error: parse error, unexpected $ in /var/www/vhosts/webnerd.com.au/subdomains/eventphotos/httpdocs/manager/actions/dynamic/mutate_user.dynamic.action.php on line 994

The second is:  When I create a new page/document I cannot set the status to "Published".  I can try to Edit the page, go to Page Settings, check the "Published?" box and Save it.. and it reports "Action was completed successfully!" but then the status is still "Un-published"

PHPInfo

Any help would be greatly appreciated

- James

[Edited: "line 995" --> "line 994"]
« Last Edit: Mar 05, 2006, 11:54 AM by jamesqh » Logged
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #1 on: Mar 05, 2006, 11:21 AM »

Hm, sounds to me like your installation didn't go well, perhaps a few files got corrupted in the upload.  I've had that happen a time or two.  Try re-uploading a fresh unzipped copy of the Manager folder.  That file only has 994 lines.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
jamesqh
Jr. Member
*
Posts: 3

I love MODx!


« Reply #2 on: Mar 05, 2006, 11:46 AM »

Hm, sounds to me like your installation didn't go well, perhaps a few files got corrupted in the upload.  I've had that happen a time or two.  Try re-uploading a fresh unzipped copy of the Manager folder.  That file only has 994 lines.
Hi scottwell,

The files were uncompressed on the server so there's no upload problems.  Have downloaded and installed it twice with same problem.

Cheers,
James
Logged
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #3 on: Mar 05, 2006, 11:52 AM »

Ah, well it was worth considering.  Sorry, that's the only suggestion I have; you'll get others here soon.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #4 on: Mar 05, 2006, 12:05 PM »

You might wanna try to reupload the files from your comp, and uncompressed the files first before uploading them. Remember, there is sometimes a problem in the compression tools itself. It's just my two cents, if it's still happening, I'll look into the file further.

Hope we can troubleshoot it more on monday maybe Wink
Logged

jamesqh
Jr. Member
*
Posts: 3

I love MODx!


« Reply #5 on: Mar 05, 2006, 12:07 PM »

Hi,

I just figured it out...  the problems I mentioned occur when

(php.ini)
short_open_tag = Off

Should I report this somewhere?

(btw, just out of curiosity, does modx have coding standards like Pear? e.g. http://pear.php.net/manual/en/standards.tags.php)

Cheers,
- James
Logged
Dimmy
Testers
*
Posts: 1,824


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #6 on: Mar 05, 2006, 02:42 PM »

Hi,

I just figured it out...  the problems I mentioned occur when

(php.ini)
short_open_tag = Off

Should I report this somewhere?

please do.
you can report it in the bug tracker

Greets Dimmy
Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
neon_eddy
Full Member
***
Posts: 157


I like Turtles


WWW
« Reply #7 on: Mar 07, 2006, 11:13 PM »

I had the same issue.. in the mutate_user.dynamic.actions.php at line 994
at line 261 replace <? } ?>   with <?php } ?>

Logged

~Shawn Himmelberger
Check out my Minneapolis MODx Web Design Company - Himmelberger Design | Also visit my friend's Minneapolis Computer Repair company -  Alt Repair
rthrash
Foundation
*
Posts: 9,575



WWW
« Reply #8 on: Mar 08, 2006, 06:36 AM »

Thanks for finding this... just committed for  0.9.2. Anyone find any more of those short-tag-suckers floating around?
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
Konrad
Jr. Member
*
Posts: 5

I love MODx!


« Reply #9 on: Mar 31, 2006, 09:58 AM »

Hope I found all...

assets/snippets/weblogin/websignup.inc.php:458:
Code:
<a href="[+action+]"><img align="top" src="manager/includes/veriword.php?rand=<? echo rand(); ?>" width="148" height="60" alt="If you have trouble reading the code, click on the code itself to generate a new random code." style="border: 1px solid #003399"></a>

manager/actions/dynamic/mutate_content.dynamic.action.php:312:
Code:
if (confirm('<?=$_lang['tmplvar_change_template_msg']?>')){

manager/actions/dynamic/mutate_user.dynamic.action.php:261:
Code:
<? } ?>

manager/actions/dynamic/mutate_web_user.dynamic.action.php:256:
Code:
<? } ?>

manager/includes/accesscontrol.inc.php:164:
Code:
<a href="<?php echo $_SERVER['PHP_SELF'];?>"><img src="includes/veriword.php?rand=<? echo rand(); ?>" width="148" height="60" alt="<?php echo $_lang["login_captcha_message"]; ?>" style="border: 1px solid #003399"></a>

manager/media/ImageEditor/Classes/Thumbnail.php:1:
Code:
<?
Logged

Konrad
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!