Error when moving VBulletin mysql database to new server via phpmyadmin - mysql

I'm trying to move vbulletin forum from bluehost server to webhosting bad. I first downloaded the vb folder from the older server and uploaded it back to the new server.
For the database, I used phpmyadmin in bluehost.com to export my database and when I try to imprt it back in the new server I get this error :
SQL query:
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="icon" href="./favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> <title>phpMyAdmin <link rel="stylesheet" type="text/css" href="phpmyadmin.css.php?server=1&token=5739e47e2a94b96da71dc4213f69b5a4&js_frame=right&nocache=5344073683" /> <link rel="stylesheet" type="text/css" href="print.css" media="print" /> <link rel="stylesheet" type="text/css" href="./themes/pmahomme/jquery/jquery-ui-1.8.custom.css" /> <meta name="robots" content="noindex,nofollow" /> <script src="./js/cross_framing_protection.js?ts=1332953438" type="text/javascript"></script> <script src="./js/jquery/jquery-1.4.4.js?ts=1332953[...]
MySQL said:
#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 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w' at line 1
Can any one please guide me to the solution ?
The bluehost phpmyadmin version is 3.4.10.2 and the webhostingpad is 3.4.10.1 is this the reason of the problem ? if yes, what is the solution ??

So you have downloaded an export from your old host? What format did you download this as? Just SQL or some kind of compressed version? As the first thing to do should be to identify if the problem is with the host you're uploading to or the one you're taking the data from. I'd suggest opening the exported file locally and seeing if it looks to be a valid SQL dump or not.

Related

style.css not accepted by server

I set up my website locally on my hard disk, and everything works fine.
But when I upload my website to the server, the file "style.css" is not loaded.
When I look at code (F12), it gives me:
"style.css:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)".
The HTML file looks like this:
enter code here
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Child-Abduction.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="verify-v1" content="L0UzG/4pPu9fgnLL3FmaFIzGkaVSoAgVZ9LHzQ0yx0c=" />
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.ico" type="favicon/ico"/>
<link rel="stylesheet" href="style.css">
</head>
Any idea why "style.css" refuses to load on my website?
TIA
Found what was causing the "error".
Seemed that several other files were not accepted by the server although on my notebook everything worked fine.
For some reason, EVERYTHING that's uploaded to the server needs to be in "lower case".
Uploaded also some *.JPG files that were not accepted by the server until I changed them into *.jpg.
Thanks

JS/CSS 404 not found using Slim Framework

I already read this question, but does not solved my case, even if is very similar.
I am using Slim framework.
This is my project structure. The Slim routing happens into the public folder.
The page templates/index.phtml needs some JS and CSS, but I get 404 not found.
My templates/index.phtml requires:
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My WebSite</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style/global.css">
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="script/index.js"></script>
</head>
And I get (for example for the index.js):
Not Found
The requested URL /index.js was not found on this server.
Apache/2.4.18 (Ubuntu) Server at blah.blah.blah Port 443
I'm not very familiar with the Slim framework but I know you're using a router and a public folder which leads me to believe that it can't access index.js because it's out of scope. Perhaps try moving your script folder inside your public folder and see if that works! :)

HTML5 Validating with Nu Html Checker

I am validating an HTML5 page and is returning these 2 warnings:
Info: The Content-Type was text/html. Using the HTML parser.
Info: Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and ITS 2.0 support.
I'm not sure if the problem is about the meta tag.
This is my code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Home Page</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
Thanks in advance,
CA
Those are not warnings. They are informational notes.
Your document is fine.

IE11 throws AppCache Fatal error

I am really humbled now. I have been trying to get my application cached in IE11 browser with no luck.
I will be really thankful if some one tell me whats going wrong. I did lot of reading whole day , but couldn't find what is causing the issue.
Issue:
My offline application gets cached correctly based on my manifest file in Chrome and Firefox. But the app doesn't get cached in IE11 (which is the only IE that I have). I have no clue what is going wrong.
My code:
manifest.appcache
CACHE MANIFEST
#V1.0
CACHE:
/FormsOffline/index.html
NETWORK:
*
index.html
<!DOCTYPE html>
<html ng-app="app" lang="en" manifest="manifest.appcache">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Forms</title>
<link href="/FormsCommon/vendor/css/all.css" rel="stylesheet" />
<link href="/FormsCommon/assets/css/main.css" rel="stylesheet" />
</head>
<body>
</body>
</html>
When I run the index.html page, i get the following erro in the IE11 console:
Creating AppCache with manifest: 'http://127.0.0.1:7101/FormsOffline/manifest.appcache'.
AppCache Fatal Error
Am building my offline application using html5, angularjs and the server is Oracle weblogic.

css working in one file but not the other

I have two html files using one css file. The one is working the other is not.
In the first 'working' case, the html syntax is (css file is in the same directory):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<title>Our first page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="ourstyle.css"></head>
In the second 'not working' case, the html syntax is (css file is in one folder up):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Our second page</title>
<link rel="stylesheet" type="text/css" href="../ourstyle.css"></head>
When running both files locally, the css file works, but on a server it does not.
I am using javascript and jquery in the second html file. I did what they suggested in the question on Two Linked CSS Files Not working but still did not work.
Please help.
PS This is my first question I am asking, so please let me know if I was not specific or clear enough. Thank you.
To clarify:
I don't have ourstyle.css in two separate directories in my local environment nor on a server. I have it only in the parent directory. So practically, I have the parent folder WWW, in which I have the 3 things:
1. the 'working' html script (with syntax 'href="ourstyle.css"')
2. the file ourstyle.css
3. the folder called cgi-bin, in which I have the 'not working' html script (with syntax 'href="../ourstyle.css"')
The same folder structure I have locally and it is running. On server it does not.
Thank you for your help.
Rather put ourstyles.css into a folder (like CSS) and then refer to them the same, i.e. /CSS/ourstyle.css (and not ../ourstyle and outstyle). Putting your scripts in js folders and styles in css folders is good practice. You will thank yourself later when you are working with lots of files.