Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 01:06:30 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155538 Posts in 21712 Topics by 7769 Members
Latest Member: deanmacullam
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [Solved] Bug in moving WB into another dir?  (Read 409 times)
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« on: November 14, 2010, 11:12:16 AM »

Hi there,

Thnx to the attention of other WB users it seems like there's a bug or something:

Example:

1) You build a WB website in a testdir and provide it with input.
2) When done you move the entire website and db into another dir.
3) All of a sudden behind all the [wblink] and [link] there appears a ?phpadmin code behind it. Example:
Code:
[wblink47]?phpMyAdmin=fQP2hqlz6s4S7kjzh74jqd%2

What could cause this?

Boudi
« Last Edit: November 15, 2010, 03:44:54 PM by Boudi » Logged

...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #1 on: November 14, 2010, 02:49:28 PM »

did you do something with phpMyAdmin to replace data in the database or export <> import to a new database?

To me it looks like a phpMyAdmin sessionId. WB will not put it in, and the data that was included is very much pointing to phpMyAdmin.
Logged

Professional WebsiteBaker Solutions
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #2 on: November 14, 2010, 03:04:19 PM »

Hi Ruud Smiley

Quote
did you do something with phpMyAdmin to replace data in the database or export <> import to a new database?

Yes, sort of.

What I do to make a site 'live' (move to another directory) is:

- export the enitre wb db via phpadmin
- move all files through ftp
- delete all the paths in the db eg: testarea/
- save the db
- delete the original db via phpadmin
- import the edited db via phpadmin
- change the paths in the config.php

That's it.
Logged

...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2296



WWW
« Reply #3 on: November 14, 2010, 03:19:58 PM »

Do you still have the edited .sql import file?
My guess is something went wrong there.
Logged

Professional WebsiteBaker Solutions
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #4 on: November 14, 2010, 03:24:31 PM »

No I don't have that any more.

- But what I did was openend the exported db with wordpad.
- Did ctrl+h
- Deleted the old dir in which the website was build in (eg: testarea/) by replacing testarea/ with noting
- Saved the new db with another name (in case of)
- Deleted the current db in phpadmin
- Imported the new db in phpadmin

Logged

...:: Bake the Unbakable ::...
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #5 on: November 15, 2010, 03:44:38 PM »

Ok, after some serious deep investigation with Ruud ( in other words, Ruud alone  grin ) the source of the problem was not some hacking stuff but a tiny bug in the phpadmin that causes this.

To avoid this kind of nasty stuff in your codes: export/import the db as a zip file instead of a txt file.

A thnq and a bunch of flowers to Ruud.  cheesy
Logged

...:: Bake the Unbakable ::...
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!