We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13494
    • 3 Posts
    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"]
    • 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.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 13494
        • 3 Posts
        Quote from: sottwell at Mar 05, 2006, 05:21 PM

        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
        • Ah, well it was worth considering. Sorry, that’s the only suggestion I have; you’ll get others here soon.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 32241
            • 1,495 Posts
            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
              Wendy Novianto
              [font=Verdana]PT DJAMOER Technology Media
              [font=Verdana]Xituz Media
              • 13494
              • 3 Posts
              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
                • 7455
                • 2,204 Posts
                Quote from: jamesqh at Mar 05, 2006, 06: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?

                please do.
                you can report it in the bug tracker

                Greets Dimmy
                  follow me on twitter: @dimmy01
                  • 21191
                  • 236 Posts
                  I had the same issue.. in the mutate_user.dynamic.actions.php at line 994
                  at line 261 replace <? } ?> with <?php } ?>

                    ~Shawn Himmelberger
                    Check out my MODx Development and MODx Design Company - Himmelberger Design
                  • Thanks for finding this... just committed for 0.9.2. Anyone find any more of those short-tag-suckers floating around?
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 16189
                      • 5 Posts
                      Hope I found all...

                      assets/snippets/weblogin/websignup.inc.php:458:
                      <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:
                      if (confirm('<?=$_lang['tmplvar_change_template_msg']?>')){


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


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


                      manager/includes/accesscontrol.inc.php:164:
                      <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:
                      <?

                        Konrad