Go Back   SugarCRM Forums > Community Forums > Installation and Upgrade Help
 Create an account

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 2008-01-24, 09:37 PM
mfleeger mfleeger is offline
Advanced Support Engineer
 
Join Date: Dec 2005
Location: Pittsburgh, PA, US
Posts: 38
Lightbulb Re: Query Failed: AND users.id = '1'::MySQL error 1064:

Funny timing, but I was working on a customer's plesk instance today and had the exact same problem!

I am not convinced that is it specific to plesk, but it is permissions related.

My best recommendation is that you enable write access by the web server user, particularly on /cache/ and /custom/...

To do this, issue some permutation or variation of the following command examples:

Code:
chown -R www sugarcrm
chmod ug+rw sugarcrm
Etc, etc...

Thanks!
Reply With Quote
  #12  
Old 2008-01-25, 05:35 PM
adamreiser adamreiser is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

Query Failed: AND users.id = '1'::MySQL error 1064:\
I am running plesk also ...

I have paid for a Sugar network event ...

As soon as we get this identified and fixed I will post the fix from the engineers

Adam
Reply With Quote
  #13  
Old 2008-01-25, 06:18 PM
kpit's Avatar
kpit kpit is offline
A Sugar Hero | Help Forum Moderator
 
Join Date: Dec 2005
Location: Hollywood, FL
Posts: 992
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

I have had it run successful under plesk in the past under Godaddy Virtual dedicated host. I did this for one of my clients. So I do know it is possible. I had to create some apache configuration overrides under the user overrides in the user directory and php overrides as well.. SugarCRM needs some things that that other applications do not normally need. Check out the SugarWiki for more info on php and apache settings. Most notable is the memory allowed in php.ini needs to be higher about 64M.
__________________
Cheers,

Max W. Blackmer, Jr.
Knowledge Power IT
Blog
Phone: 954-926-6629


Reply With Quote
  #14  
Old 2008-01-26, 04:50 PM
tonythemediaguy tonythemediaguy is offline
Junior Member
 
Join Date: Dec 2007
Posts: 3
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

OK, since my last post I upgraded my godaddy virtual dedicated to cpanel from plesk. I had to recompile apache/php with mbstring enabled to use Sugar. After I did that, I was able to get Sugar working just fine. This is under php 5 and mysql 5.

So probably a permissions thing with Plesk.
Reply With Quote
  #15  
Old 2008-01-28, 11:01 AM
arshad arshad is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

Hi Everybody,
Finally I could fix this problem.

I was facing the same problem as everybody else. I installed sugarCRM 4.5.1h under the PHP Version 5.0.4 and mysql 4.1.20. After facing the problem I installed it again in another server with same php/mysql version. But its working fine.

At last I can figure out the problem that my old sever php safe_mode is set to ON, which is need to be OFF.

So, Just change your php safe_mode to Off, then as my assumption, it will work fine.

Good, luck
Arshad

Last edited by arshad; 2008-01-28 at 11:05 AM.
Reply With Quote
  #16  
Old 2008-02-01, 03:13 AM
jdd jdd is offline
Junior Member
 
Join Date: Feb 2008
Posts: 2
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

I'm not on plesk, but, am using a godaddy dedicated server... getting the same error message "Query Failed: AND users.id = '1'::MySQL error 1064:" as well as errors with file() and require_once()... I had to chmod everything with 777 to even get it installed, wouldn't work with the perscribed 766.

I am also running with safe_mode = Off and mbstring enabled, as was recommended by others in this thread, and still nothing... lets me login, but then throws the fatal error.

Last edited by jdd; 2008-02-01 at 03:18 AM.
Reply With Quote
  #17  
Old 2008-02-01, 03:31 AM
jdd jdd is offline
Junior Member
 
Join Date: Feb 2008
Posts: 2
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

Quote:
Originally Posted by jdd
I'm not on plesk, but, am using a godaddy dedicated server... getting the same error message "Query Failed: AND users.id = '1'::MySQL error 1064:" as well as errors with file() and require_once()... I had to chmod everything with 777 to even get it installed, wouldn't work with the perscribed 766.

I am also running with safe_mode = Off and mbstring enabled, as was recommended by others in this thread, and still nothing... lets me login, but then throws the fatal error.
Cause, seemed to be a permissions problem on my end... up and running now.
Reply With Quote
  #18  
Old 2008-02-05, 09:41 AM
skalla skalla is offline
Member
 
Join Date: Nov 2007
Posts: 10
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

Hi, I have the same problem here.
Sugar 5.0.0a
php 5 with mbstring and safe_mode = off
mysql 5
last part of sugarcrm.log:
Quote:
Tue Feb 5 11:10:23 2008,122 [15910] FATAL SugarCRM - Error fetching relationship from cache calls_contacts
Tue Feb 5 11:10:33 2008,546 [16026] FATAL SugarCRM - Error fetching relationship from cache contacts_users
Tue Feb 5 11:10:33 2008,547 [16026] FATAL SugarCRM - MySQL error 1064:
When I tried to login and see the error message I can press the back button and then I am logged in.
However some functionallity throws the same error message, e.g. 'Home':
Query Failed: AND users.id = '3b7d60ba-92f6-a46e-30ca-477b6d8b979f'::MySQL error 1064:

_Every_ single permission under the sugarcrm directory is set to 777.
The db is exported from a working installation of 5.0.0 under windows with the FastStack Mysql package. There it works fine.

Any ideas? It's sadly not usable this way
Reply With Quote
  #19  
Old 2008-02-05, 01:30 PM
stueckmann stueckmann is offline
Member
 
Join Date: Aug 2006
Posts: 9
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

Same to me, did you get it running ???

Plesk with Sugar 5.0.0a
...


Quote:
Originally Posted by skalla
Hi, I have the same problem here.
Sugar 5.0.0a
php 5 with mbstring and safe_mode = off
mysql 5
last part of sugarcrm.log:


When I tried to login and see the error message I can press the back button and then I am logged in.
However some functionallity throws the same error message, e.g. 'Home':
Query Failed: AND users.id = '3b7d60ba-92f6-a46e-30ca-477b6d8b979f'::MySQL error 1064:

_Every_ single permission under the sugarcrm directory is set to 777.
The db is exported from a working installation of 5.0.0 under windows with the FastStack Mysql package. There it works fine.

Any ideas? It's sadly not usable this way
Reply With Quote
  #20  
Old 2008-02-07, 03:16 PM
skalla skalla is offline
Member
 
Join Date: Nov 2007
Posts: 10
Default Re: Query Failed: AND users.id = '1'::MySQL error 1064:

Nope, still waiting for help here.

Could someone at least explain me howto enable real error messages, so I can see in which file/line this sql is build?

Or howto enable a log of the sql queries?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error retrieving Meeting list: Query Failed Jirka Help 2 2007-03-08 11:15 AM
How is the $layout_def['fields']['OPPORTUNITY_ROLE_ID'] set? Contacts SubPanel in Opp elRey Developer Help 11 2006-10-26 01:13 PM
Query Failed AND userid ='1':: MySQL error 1064: susserj Help 4 2006-08-08 03:33 PM
export calender data and import to outlook using custom query report in zuckerreports aheuermann Help 1 2006-08-03 10:06 AM
Query Failed: AND users.id = '1'::MySQL error 1064: francois007 Help 0 2006-05-12 01:27 PM


All times are GMT. The time now is 03:00 AM.


Powered by: vBulletin
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SourceForge.net Logo