7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » uploadify problem <h1> bad request (Invalid hostname) </h1>
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 546 Views |
-
uploadify problem <h1> bad request (Invalid hostname) </h1>

2 January 2013 at 7:07pm
hi everyone,
I am using silverstripe 2.4.7 it is working fine, The thing is from last one month uploadify module is working fine in my localhost,
but suddenly it giving error like "<h1> bad request (Invalid hostname) </h1>" in localhost.after that i enable the firefox firebug, so now i am getting response from firebug is
ERROR [User Error]: Couldn't run query:
SELECT "File"."ClassName", "File"."Created", "File"."LastEdited", "File"."Name", "File"."Title", "File"."Filename", "File"."Content", "File"."Sort", "File"."ShowInSearch", "File"."SortOrder", "File"."ParentID", "File"."OwnerID", "File"."ID", CASE WHEN "File"."ClassName" IS NOT NULL THEN "File"."ClassName" ELSE 'File' END AS "RecordClassName"
FROM "File"
WHERE ("File"."ID" IN (<h1>Bad Request (Invalid Hostname)</h1>))
ORDER BY "SortOrder" ASCYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<h1>Bad Request (Invalid Hostname)</h1>)) ORDER BY "SortOrder" ASC' at line 1
IN GET /nesso/index.php/admin/assets/EditForm/field/Files/UploadifyForm/field/UploadedFiles/refresh?SecurityID=6b50d9fb8fd164f81ab57b19593446690749745d&ctf[Files][start]=0&ctf[Files][per_page]=10&ctf[Files][showall]=0&ctf[Files][sort]=SortOrder&ctf[Files][sort_dir]=&ctf[Files][search]=&ctf[Files][filter]=&ctf[Files][view]=&FileIDs=%3Ch1%3EBad+Request+(Invalid+Hostname)%3C%2Fh1%3E
Line 525 in /var/www/nesso/sapphire/core/model/MySQLDatabase.phpSource
======
516: }
517:
518: function databaseError($msg, $errorLevel = E_USER_ERROR) {
519: // try to extract and format query
520: if(preg_match('/Couldn\'t run query: ([^\|]*)\|\s*(.*)/', $msg, $matches)) {
521: $formatter = new SQLFormatter();
522: $msg = "Couldn't run query: \n" . $formatter->formatPlain($matches[1]) . "\n\n" . $matches[2];
523: }
524:
* 525: user_error($msg, $errorLevel);
526: }
527:
528: /**
529: * Return a boolean type-formatted string
530: *
531: * @param array $values Contains a tokenised list of info about this data typeTrace
=====
<ul>user_error(Couldn't run query:
SELECT "File"."ClassName", "File"."Created", "File"."LastEdited", "File"."Name", "File"."Title", "File"."Filename", "File"."Content", "File"."Sort", "File"."ShowInSearch", "File"."SortOrder", "File"."ParentID", "File"."OwnerID", "File"."ID", CASE WHEN "File"."ClassName" IS NOT NULL THEN "File"."ClassName" ELSE 'File' END AS "RecordClassName"
FROM "File"
WHERE ("File"."ID" IN (<h1>Bad Request (Invalid Hostname)</h1>))
ORDER BY "SortOrder" ASCYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<h1>Bad Request (Invalid Hostname)</h1>)) ORDER BY "SortOrder" ASC' at line 1,256)
line 525 of MySQLDatabase.phpMySQLDatabase->databaseError(Couldn't run query: SELECT "File"."ClassName", "File"."Created", "File"."LastEdited", "File"."Name", "File"."Title", "File"."Filename", "File"."Content", "File"."Sort", "File"."ShowInSearch", "File"."SortOrder", "File"."ParentID", "File"."OwnerID", "File"."ID", CASE WHEN "File"."ClassName" IS NOT NULL THEN "File"."ClassName" ELSE 'File' END AS "RecordClassName" FROM "File" WHERE ("File"."ID" IN (<h1>Bad Request (Invalid Hostname)</h1>)) ORDER BY "SortOrder" ASC | 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 '<h1>Bad Request (Invalid Hostname)</h1>)) ORDER BY "SortOrder" ASC' at line 1,256)
line 123 of MySQLDatabase.phpMySQLDatabase->query(SELECT "File"."ClassName", "File"."Created", "File"."LastEdited", "File"."Name", "File"."Title", "File"."Filename", "File"."Content", "File"."Sort", "File"."ShowInSearch", "File"."SortOrder", "File"."ParentID", "File"."OwnerID", "File"."ID", CASE WHEN "File"."ClassName" IS NOT NULL THEN "File"."ClassName" ELSE 'File' END AS "RecordClassName" FROM "File" WHERE ("File"."ID" IN (<h1>Bad Request (Invalid Hostname)</h1>)) ORDER BY "SortOrder" ASC,256)
line 129 of DB.phpDB::query(SELECT "File"."ClassName", "File"."Created", "File"."LastEdited", "File"."Name", "File"."Title", "File"."Filename", "File"."Content", "File"."Sort", "File"."ShowInSearch", "File"."SortOrder", "File"."ParentID", "File"."OwnerID", "File"."ID", CASE WHEN "File"."ClassName" IS NOT NULL THEN "File"."ClassName" ELSE 'File' END AS "RecordClassName" FROM "File" WHERE ("File"."ID" IN (<h1>Bad Request (Invalid Hostname)</h1>)) ORDER BY "SortOrder" ASC,256)
line 404 of SQLQuery.phpSQLQuery->execute()
line 761 of File.phpFile->instance_get("File"."ID" IN (<h1>Bad Request (Invalid Hostname)</h1>),,,,DataObjectSet)
line 2714 of DataObject.phpDataObject::get(File,"File"."ID" IN (<h1>Bad Request (Invalid Hostname)</h1>))
line 182 of MultipleFileUploadField.phpMultipleFileUploadField->Files()
line 369 of ViewableData.phpViewableData->obj(Files,,,1,)
line 411 of ViewableData.phpViewableData->cachedCall(Files,)
line 424 of ViewableData.phpViewableData->hasValue(Files)
line 11 of .cache.uploadify.templates.Includes.AttachedFiles.ssinclude(/tmp/silverstripe-cache-var-www-nesso/.cache.uploadify.templates.Includes.AttachedFiles.ss)
line 429 of SSViewer.phpSSViewer->process(MultipleFileUploadField)
line 342 of ViewableData.phpViewableData->renderWith(AttachedFiles)
line 128 of MultipleFileUploadField.phpMultipleFileUploadField->refresh(SS_HTTPRequest)
line 143 of RequestHandler.phpRequestHandler->handleRequest(SS_HTTPRequest)
line 161 of RequestHandler.phpRequestHandler->handleRequest(SS_HTTPRequest)
line 161 of RequestHandler.phpRequestHandler->handleRequest(SS_HTTPRequest)
line 161 of RequestHandler.phpRequestHandler->handleRequest(SS_HTTPRequest)
line 161 of RequestHandler.phpRequestHandler->handleRequest(SS_HTTPRequest)
line 147 of Controller.phpController->handleRequest(SS_HTTPRequest)
line 282 of Director.phpDirector::handleRequest(SS_HTTPRequest,Session)
line 125 of Director.phpDirector::direct(admin/assets/EditForm/field/Files/UploadifyForm/field/UploadedFiles/refresh)
line 127 of main.phprequire_once(/var/www/nesso/sapphire/main.php)
line 63 of index.php</ul>
Please anyone help me.
| 546 Views | ||
|
Page:
1
|
Go to Top |

