This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-10-17 18:50:45

ShockTheHedgehog
Scratcher
Registered: 2010-02-12
Posts: 25

error 512 or something...

Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pco' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
Code | Context$sql    =    "SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`)  WHERE (proj_visibility='visible' OR proj_visibility='censbycomm' OR proj_visibility='censbyadmin')AND `Pcomment`.`content` RLIKE 'satan:*shrugs*[ \t\n\r\f\v]*I[ \t\n\r\f\v]*don't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pcomment`.`user_id = 447920   "
$error    =    "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pco' at line 1"
$out    =    null            $out = null;
            if ($error) {
                trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 512
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 627
Model::find() - CORE/cake/libs/model/model.php, line 1795
Pcomment::find() - APP/models/pcomment.php, line 12
Model::findAll() - CORE/cake/libs/model/model.php, line 2631
Pcomment::findAll() - APP/models/pcomment.php, line 23
ProjectsController::comment_reply() - APP/controllers/projects_controller.php, line 2735
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 91
Query: SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`) WHERE (proj_visibility='visible' OR proj_visibility='censbycomm' OR proj_visibility='censbyadmin')AND `Pcomment`.`content` RLIKE 'satan:*shrugs*[ \t\n\r\f\v]*I[ \t\n\r\f\v]*don't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3 day AND Pcomment`.`user_id = 447920

Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
Code | Context$sql    =    "SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`)  WHERE `Pcomment`.`project_id` = 1265906 AND `Pcomment`.`user_id` = 447920 AND `Pcomment`.`content` = 'satan:*shrugs* I don't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1"
$error    =    "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1' at line 1"
$out    =    null            $out = null;
            if ($error) {
                trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 512
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 627
Model::find() - CORE/cake/libs/model/model.php, line 1795
Pcomment::find() - APP/models/pcomment.php, line 12
ProjectsController::comment_reply() - APP/controllers/projects_controller.php, line 2785
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 91
Query: SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`) WHERE `Pcomment`.`project_id` = 1265906 AND `Pcomment`.`user_id` = 447920 AND `Pcomment`.`content` = 'satan:*shrugs* I don't know...' AND Pcomment`.`reply_to!= -100 LIMIT 1


I am, was and ever shall be epic, but you fail, oh, and you just lost the game
http://www.wizards.com/magic/images/whatcolor_isblack.jpgTake the Magic: The Gathering 'What Color Are You?' Quiz.

Offline

 

#2 2010-10-17 18:53:02

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: error 512 or something...

It did the same thing to me, but it still posted the comment.
-12three-

Offline

 

#3 2010-10-17 18:53:53

ShockTheHedgehog
Scratcher
Registered: 2010-02-12
Posts: 25

Re: error 512 or something...

12three wrote:

It did the same thing to me, but it still posted the comment.
-12three-

it did post the comment, yet it gave me the error...


I am, was and ever shall be epic, but you fail, oh, and you just lost the game
http://www.wizards.com/magic/images/whatcolor_isblack.jpgTake the Magic: The Gathering 'What Color Are You?' Quiz.

Offline

 

#4 2010-10-17 18:54:32

recycle49
Scratcher
Registered: 2009-12-21
Posts: 1000+

Re: error 512 or something...

O_O Iv never seen one of t5hose before

Code:

Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pco' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
Code | Context$sql    =    "SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`)  WHERE (proj_visibility='visible' OR proj_visibility='censbycomm' OR proj_visibility='censbyadmin')AND `Pcomment`.`content` RLIKE 'satan:*shrugs*[ \t\n\r\f\v]*I[ \t\n\r\f\v]*don't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pcomment`.`user_id = 447920   "
$error    =    "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pco' at line 1"
$out    =    null            $out = null;
            if ($error) {
                trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 512
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 627
Model::find() - CORE/cake/libs/model/model.php, line 1795
Pcomment::find() - APP/models/pcomment.php, line 12
Model::findAll() - CORE/cake/libs/model/model.php, line 2631
Pcomment::findAll() - APP/models/pcomment.php, line 23
ProjectsController::comment_reply() - APP/controllers/projects_controller.php, line 2735
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 91
Query: SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`) WHERE (proj_visibility='visible' OR proj_visibility='censbycomm' OR proj_visibility='censbyadmin')AND `Pcomment`.`content` RLIKE 'satan:*shrugs*[ \t\n\r\f\v]*I[ \t\n\r\f\v]*don't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3 day AND Pcomment`.`user_id = 447920 

Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
Code | Context$sql    =    "SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`)  WHERE `Pcomment`.`project_id` = 1265906 AND `Pcomment`.`user_id` = 447920 AND `Pcomment`.`content` = 'satan:*shrugs* I don't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1"
$error    =    "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1' at line 1"
$out    =    null            $out = null;
            if ($error) {
                trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 512
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 627
Model::find() - CORE/cake/libs/model/model.php, line 1795
Pcomment::find() - APP/models/pcomment.php, line 12
ProjectsController::comment_reply() - APP/controllers/projects_controller.php, line 2785
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 91
Query: SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`) WHERE `Pcomment`.`project_id` = 1265906 AND `Pcomment`.`user_id` = 447920 AND `Pcomment`.`content` = 'satan:*shrugs* I don't know...' AND Pcomment`.`reply_to!= -100 LIMIT 1

Last edited by recycle49 (2010-10-17 18:55:43)


"Every challenge must be met, every battle must be won, and every story will end." -Me
Recycle49 December 09 - November 11 Goodbye

Offline

 

#5 2010-10-17 18:59:18

ShockTheHedgehog
Scratcher
Registered: 2010-02-12
Posts: 25

Re: error 512 or something...

recycle49 wrote:

O_O Iv never seen one of those before

Code:

Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pco' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
Code | Context$sql    =    "SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`)  WHERE (proj_visibility='visible' OR proj_visibility='censbycomm' OR proj_visibility='censbyadmin')AND `Pcomment`.`content` RLIKE 'satan:*shrugs*[ \t\n\r\f\v]*I[ \t\n\r\f\v]*don't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pcomment`.`user_id = 447920   "
$error    =    "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3  day AND Pco' at line 1"
$out    =    null            $out = null;
            if ($error) {
                trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 512
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 627
Model::find() - CORE/cake/libs/model/model.php, line 1795
Pcomment::find() - APP/models/pcomment.php, line 12
Model::findAll() - CORE/cake/libs/model/model.php, line 2631
Pcomment::findAll() - APP/models/pcomment.php, line 23
ProjectsController::comment_reply() - APP/controllers/projects_controller.php, line 2735
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 91
Query: SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`) WHERE (proj_visibility='visible' OR proj_visibility='censbycomm' OR proj_visibility='censbyadmin')AND `Pcomment`.`content` RLIKE 'satan:*shrugs*[ \t\n\r\f\v]*I[ \t\n\r\f\v]*don't[ \t\n\r\f\v]*know...' AND Pcomment`.`created > now() - interval 3 day AND Pcomment`.`user_id = 447920 

Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
Code | Context$sql    =    "SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`)  WHERE `Pcomment`.`project_id` = 1265906 AND `Pcomment`.`user_id` = 447920 AND `Pcomment`.`content` = 'satan:*shrugs* I don't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1"
$error    =    "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know...' AND Pcomment`.`reply_to!= -100    LIMIT 1' at line 1"
$out    =    null            $out = null;
            if ($error) {
                trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 512
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 202
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 338
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 627
Model::find() - CORE/cake/libs/model/model.php, line 1795
Pcomment::find() - APP/models/pcomment.php, line 12
ProjectsController::comment_reply() - APP/controllers/projects_controller.php, line 2785
Object::dispatchMethod() - CORE/cake/libs/object.php, line 118
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 256
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 230
[main] - APP/webroot/index.php, line 91
Query: SELECT `Pcomment`.`id`, `Pcomment`.`project_id`, `Pcomment`.`user_id`, `Pcomment`.`content`, `Pcomment`.`visibility`, `Pcomment`.`timestamp`, `Pcomment`.`reply_to_id`, `Pcomment`.`created`, `Pcomment`.`reply_to`, `Pcomment`.`comment_visibility`, `User`.`id`, `User`.`username`, `User`.`villager`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`urlname`, `User`.`role`, `User`.`email`, `User`.`password`, `User`.`buddyicon`, `User`.`organization`, `User`.`city`, `User`.`created`, `User`.`timestamp`, `User`.`state`, `User`.`country`, `User`.`hearabout`, `User`.`interestsabout`, `User`.`comments`, `User`.`bmonth`, `User`.`byear`, `User`.`notify_pcomment`, `User`.`notify_gcomment`, `User`.`ipaddress`, `User`.`status`, `User`.`blocked_till`, `User`.`userpicext`, `User`.`userpic_suffix`, `Project`.`id`, `Project`.`user_id`, `Project`.`name`, `Project`.`description`, `Project`.`rating`, `Project`.`views`, `Project`.`anonviews`, `Project`.`num_favoriters`, `Project`.`num_raters`, `Project`.`created`, `Project`.`modified`, `Project`.`timestamp`, `Project`.`loveit`, `Project`.`loveitsuniqueip`, `Project`.`num_bookmarks`, `Project`.`version`, `Project`.`flagit`, `Project`.`numberOfSprites`, `Project`.`totalScripts`, `Project`.`has_sound_blocks`, `Project`.`has_sensorboard_blocks`, `Project`.`related_project_id`, `Project`.`based_on_pid`, `Project`.`root_based_on_pid`, `Project`.`related_username`, `Project`.`proj_visibility`, `Project`.`vischangedbyid`, `Project`.`vischangedtime`, `Project`.`safe`, `Project`.`status`, `Project`.`locked`, `Project`.`remixes`, `Project`.`remixer`, `Project`.`upload_ip`, `Project`.`country`, `Project`.`scratch_version_date` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User` ON (`Pcomment`.`user_id` = `User`.`id`) LEFT JOIN `projects` AS `Project` ON (`Pcomment`.`project_id` = `Project`.`id`) WHERE `Pcomment`.`project_id` = 1265906 AND `Pcomment`.`user_id` = 447920 AND `Pcomment`.`content` = 'satan:*shrugs* I don't know...' AND Pcomment`.`reply_to!= -100 LIMIT 1

I am, was and ever shall be epic, but you fail, oh, and you just lost the game
http://www.wizards.com/magic/images/whatcolor_isblack.jpgTake the Magic: The Gathering 'What Color Are You?' Quiz.

Offline

 

#6 2010-10-17 19:01:47

pika100chu
Scratcher
Registered: 2009-07-26
Posts: 500+

Re: error 512 or something...

This seems like a duplicate thread, but wow! Did it post the comment?

Offline

 

#7 2010-10-17 19:02:50

ShockTheHedgehog
Scratcher
Registered: 2010-02-12
Posts: 25

Re: error 512 or something...

pika100chu wrote:

This seems like a duplicate thread, but wow! Did it post the comment?

yeah, it was epic failed though, I thought it didn't post, oh well, I'm leaving to forums now I guess


I am, was and ever shall be epic, but you fail, oh, and you just lost the game
http://www.wizards.com/magic/images/whatcolor_isblack.jpgTake the Magic: The Gathering 'What Color Are You?' Quiz.

Offline

 

#8 2010-10-17 19:38:36

BlazeAstro
Scratcher
Registered: 2009-11-29
Posts: 100+

Re: error 512 or something...

I got that too. I posted it in Troubleshooting and Andresmh said it was now fixed.

Offline

 

Board footer