We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1978
    • 131 Posts
    Hi.

    I’m installing a latest modx 0.9.6

    I receive an error "You don’t have enough privileges for this action!" when trying to get to some of created pages (or after creating/editing page) in manager.
    With close radion button switched - showing the-cleaning-up-message and after that before returning to the page I just edited throws a JS alert window with "You don’t have enough privileges for this action!" and OK button. After clicking OK it reloads right frame and throws an error again, so i have to click anything rapidly (manage resources for example) to break this circle.

    And it happents after a clean installation - nothing was done.

    And I can’t understand why it happens - where can I see logs? Or where should I switch debug mode?

    I tried IE6 and Firefox 2 - both get errors.
      Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
      QuickEdit под win-1251 без mb_-функций
      • 22303 MODX Staff
      • 10,725 Posts
      Please provide a little more information to help us help you, as described at http://modxcms.com/forums/index.php/topic,489.0.html
        • 1978
        • 131 Posts
        My OS WinXP Pro, browsers IE 6, Firefox 2

        Server data:

        PHP Version 4.4.7

        System FreeBSD 4.11-RELEASE-p17 i386

        SERVER_SOFTWARE Apache/1.3.37 (Unix)
          Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
          QuickEdit под win-1251 без mb_-функций
          • 1978
          • 131 Posts
          Important

          When error appears in manager apache writes the following log:

          [tt][Tue Oct 16 20:58:43 2007] [error] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/u43221/my.domain/www/manager/actions/document_data.static.php on line 31[/tt]

          the code at this line is

          [tt]$limit = mysql_num_rows($rs);[/tt]

          Don’t know what to do with it actually huh
            Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
            QuickEdit под win-1251 без mb_-функций
            • 1978
            • 131 Posts
            One more bug - when editing page and entering alias it doesn’t save it.

            And apache log is

            [tt][Tue Oct 16 22:28:16 2007] [error] PHP Warning: strtr() [<a href=’function.strtr’>function.strtr</a>]: The second argument is not an array. in /home/u43221/my.domain/www/manager/processors/save_content.processor.php on line 859
            [/tt]

            I repeat - it’s out of box installation 0.9.6.

            Any ideas???
              Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
              QuickEdit под win-1251 без mb_-функций
              • 22303 MODX Staff
              • 10,725 Posts
              The last issue is a known issue with non-UTF-8 sites and there are several threads here discussing workarounds.

              The previous issue sounds like it might be related to the table_prefix you’ve chosen. Can you tell me what your table_prefix is and what version of MySQL the server is running?
                • 1978
                • 131 Posts
                MySQL Client API version 4.0.24

                Table prefix a-pik4_ all in english

                update: so you mean it’s better to leave UTF encoding and the problem just goes?
                  Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
                  QuickEdit под win-1251 без mb_-функций
                  • 22303 MODX Staff
                  • 10,725 Posts
                  Quote from: Aramaki at Oct 16, 2007, 01:55 PM

                  MySQL Client API version 4.0.24

                  Table prefix a-pik4_ all in english

                  update: so you mean it’s better to leave UTF encoding and the problem just goes?
                  Yes on the UTF-8 regarding the second error. And your table-prefix is indeed the problem on the first error you saw recorded in the apache error log. If you use one without a dash in it, it will avoid the problem for now.

                  The UTF-8 issue is resolved in trunk in SVN, and I’ll get a fix for the unescaped table name in document_data.static.php before releasing 0.9.6.1 maintenance release in the next few days.
                    • 1978
                    • 131 Posts
                    GREAT!!! Thenk you OpenGeek.

                    I made prefix "a1_" and it worked.

                    I guess modx didn’t like "-" in prefix - that’s weird  undecided.

                    The only error left in logs is

                    [tt][Wed Oct 17 20:14:23 2007] [error] [client 217.10.47.251] File does not exist: /home/u43221/my.domain/www/manager/media/images/misc/dot.gif[/tt]

                    I guess that’s installation bug that will be fixed.
                      Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
                      QuickEdit под win-1251 без mb_-функций