Dec 04, 2008, 04:12 PM *
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: "You don't have enough privileges for this action!" error  (Read 1034 times)
0 Members and 1 Guest are viewing this topic.
Aramaki
Member
**
Posts: 72



« on: Oct 16, 2007, 09:33 AM »

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.
« Last Edit: Oct 16, 2007, 09:37 AM by Aramaki » Logged

Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
QuickEdit под win-1251 без mb_-функций
OpenGeek
MODx Co-Founder
Foundation
*
Posts: 5,055


looking a little more like my avatar again...


WWW
« Reply #1 on: Oct 16, 2007, 09:46 AM »

Please provide a little more information to help us help you, as described at http://modxcms.com/forums/index.php/topic,489.0.html
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
The spirit of a warrior is not geared to indulging and complaining, nor is it geared to winning or losing. The spirit of the warrior is geared only to struggle, and every struggle is a warrior's last battle on earth. Thus the outcome matters very little to him. In his last battle on earth a warrior lets his spirit flow free and clear. And as he wages his battle, knowing that his intent is impeccable, a warrior laughs and laughs.
  — don Juan Matus
Aramaki
Member
**
Posts: 72



« Reply #2 on: Oct 16, 2007, 10:24 AM »

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) 
« Last Edit: Oct 16, 2007, 01:15 PM by Aramaki » Logged

Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
QuickEdit под win-1251 без mb_-функций
Aramaki
Member
**
Posts: 72



« Reply #3 on: Oct 16, 2007, 12:01 PM »

Important

When error appears in manager apache writes the following log:

[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

the code at this line is

$limit = mysql_num_rows($rs);

Don't know what to do with it actually  Huh
« Last Edit: Oct 16, 2007, 01:26 PM by Aramaki » Logged

Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
QuickEdit под win-1251 без mb_-функций
Aramaki
Member
**
Posts: 72



« Reply #4 on: Oct 16, 2007, 01:31 PM »

One more bug - when editing page and entering alias it doesn't save it.

And apache log is

[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


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

Any ideas???
Logged

Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
QuickEdit под win-1251 без mb_-функций
OpenGeek
MODx Co-Founder
Foundation
*
Posts: 5,055


looking a little more like my avatar again...


WWW
« Reply #5 on: Oct 16, 2007, 01:46 PM »

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?
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
The spirit of a warrior is not geared to indulging and complaining, nor is it geared to winning or losing. The spirit of the warrior is geared only to struggle, and every struggle is a warrior's last battle on earth. Thus the outcome matters very little to him. In his last battle on earth a warrior lets his spirit flow free and clear. And as he wages his battle, knowing that his intent is impeccable, a warrior laughs and laughs.
  — don Juan Matus
Aramaki
Member
**
Posts: 72



« Reply #6 on: 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?
Logged

Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
QuickEdit под win-1251 без mb_-функций
OpenGeek
MODx Co-Founder
Foundation
*
Posts: 5,055


looking a little more like my avatar again...


WWW
« Reply #7 on: Oct 16, 2007, 04:25 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.
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
The spirit of a warrior is not geared to indulging and complaining, nor is it geared to winning or losing. The spirit of the warrior is geared only to struggle, and every struggle is a warrior's last battle on earth. Thus the outcome matters very little to him. In his last battle on earth a warrior lets his spirit flow free and clear. And as he wages his battle, knowing that his intent is impeccable, a warrior laughs and laughs.
  — don Juan Matus
Aramaki
Member
**
Posts: 72



« Reply #8 on: Oct 17, 2007, 11:17 AM »

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

[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

I guess that's installation bug that will be fixed.
« Last Edit: Oct 17, 2007, 11:21 AM by Aramaki » Logged

Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
QuickEdit под win-1251 без mb_-функций
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!