Migrating from WOS database to XAMPP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Migrating from WOS database to XAMPP

Postby edj » 23. November 2012 16:53

I am in the middle of migrating a Wiki database from WOS (www.chsoftware.net) to XAMPP (http://www.apachefriends.org) version 1.8.1.

I have successfully installed XAMPP on my notebook, but I receive the following error when I enter http://localhost/mediawiki/index.php/Main_Page into my web brower's address box:

Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting \\ (T_NS_SEPARATOR) in C:\xampp\htdocs\mediawiki\includes\Title.php on line 640

I'm not familiar with .php file code syntax, but it looks like an incompatibility between WOS' scripting language and XAMPP's.

Does anyone have any suggestions?

Thanks for any suggestions you may have to offer.

edj
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Re: Migrating from WOS database to XAMPP

Postby JonB » 24. November 2012 12:31

The best idea would be to determine the version of PHP that was used by http://www.chsoftware.net. Then you could match the XAMPP version, by PHP release, to what was in use previously.

I used Google to see what might be out there, found this -
http://archive.is/www.chsoftware.net

this might be the clue:
http://archive.is/wFhE

XAMPP 1.7.3 (PHP 5.3.1) or XAMPP 1.7.4 (PHP 5.3.5) might be a good matches. Altrea would know better than I, but the 1.7.7 XAMPP would probably also work. The XAMPP 1.7.x versions all use PHP 5.3 releases. The XAMPP 1.8 series use PHP 5.4.x releases.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Import Database

Postby edj » 28. November 2012 17:32

I'm trying to export a Wiki database from a WOS portable II (http://www.chsoftware.net) application to an XAMPP Lite version 1.7.1 (http://www.apachefriends.org/en/xampp-windows.html) application. The WOS portable II database uses the PNP generator MediaWiki 1.9.3; the XAMPP database uses MediaWiki 1.19.2.

It appears I was successful exporting the WOS database. The SpecialPages->Export generates the following .XML (note: this code is abbreviated)

<?xml version="1.0"?>
-<mediawiki xml:lang="en" version="0.3" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.mediawiki.org/xml/export-0.3/"> -<siteinfo> <sitename>WOS Package</sitename> <base>http://localhost/mediawiki/index.php/Main_Page</base> <generator>MediaWiki 1.9.3</generator> <case>first-letter</case> -<namespaces> <namespace key="-2">Media</namespace>

Upon importing the .XML code into XAMPP, I cannot browse to any Wiki pages. The Wiki I created using XAMPP Lite 1.7.1 and mediaWiki 1.19.2 doesn't appear to have any data at all!

Any assistance that you could offer would be sincerely appreciated. :)
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Re: Import Database

Postby JonB » 29. November 2012 00:45

Gee - Why not export/import via MySQL in .sql format?

"just askin' " as people like to say.

Good Luck
:D
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Import Database

Postby edj » 29. November 2012 17:30

Any idea how this is done? I'm a little new to MySQL and XAMPP.

One more thing. I'm using Windows 7 and XAMPP Lite 1.7.1 to maintain compatibility with an older mediawiki version (1.9.1).
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Re: Migrating from WOS database to XAMPP

Postby edj » 06. December 2012 22:02

XAMPP Lite version 1.7.1 works. It contains PHP 5.2.9, which is the latest version of PHP that supports MediaWiki 1.9.1. MediaWiki 1.9.1 was used in the original WOS Wiki.
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Re: Import Database

Postby edj » 06. December 2012 22:09

I simply opened the wiki pages while WOS was active, entered the edit tab, and copied-and-pasted the pages from one wiki to another. This was a brute-force method, but it worked!

Unfortunately, the .svg files are not rendering correctly. They are displayed in the WOS-based wiki, but you have to click a link to get them to pop up in the XAMPP-based wiki.
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Images not rendering after switching to XAMPP Lite 1.7.1

Postby edj » 07. December 2012 14:28

.svg mages are not displayed when I open my Wiki pages. I originally ported this Wiki from MoWeS Portable II version 2.3.2 to XAMPP Lite version 1.7.1. In MoWeS portable II, the images were displayed (albeit small); in XAMPP Lite, the images are replaced by something like this:

<svg>400 300 http://localhost/mediawiki/images/Section1/FO-1.svg</svg>

By clicking on the "http://localhost/mediawiki/images/Section1/FO-1.svg", I can get the image to display, but I want it to come up by default.

Does anyone have any suggestions?
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Re: Migrating from WOS database to XAMPP

Postby Altrea » 08. December 2012 01:59

merged all posts into this single thread.
no need to make new threads for the same issue.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Migrating from WOS database to XAMPP

Postby JonB » 09. December 2012 05:13

If you are using Internet Explorer, try a different browser.

The problem is likely due to the fact that SVG files are not Windows-native.

The problem may be strictly local (on your machine only) if you are using IE.

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Migrating from WOS database to XAMPP

Postby edj » 10. December 2012 14:20

Moving from IE 9.0 to Google Chrome 23.0.1271.95 m doesn't work. They both display the same information.
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Re: Migrating from WOS database to XAMPP

Postby JonB » 11. December 2012 03:08

There are many possible reasons for this, I'm not expert enough with svg to know a definitive answer.

my 'guess' is this:

Since the markup tag is displayed rather than the image, you may need to add a mime type for svg in Apache. I think the browsers do not know how to render svg 'inline' - Remember- this is a 'guess' -

http://www.w3.org/services/svg-server/

If this doesn't fix things - I'd look for a forum/resource that specializes on either svg or mediawiki.

Good Luck
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Migrating from WOS database to XAMPP

Postby Altrea » 11. December 2012 06:10

Hi edj,

AFAIK the <svg> Tag is just for drawing svg images, not for displaying .svg files
Use the <embed>, <object> or <iframe> tag instead to display your .svg file, like described here: http://www.w3schools.com/svg/svg_inhtml.asp

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Migrating from WOS database to XAMPP

Postby edj » 11. December 2012 20:31

Thank you very much for replying, Altrea.

I tried replacing the <svg>...</svg> code with all three versions: <embed..., <object..., <iframe... and just embedded svg by entering <svg..., but they all gave me the same results that I experienced before. The string I typed into the editor appeared, but the image doesn't come up unless you click on the link: http://....

Thanks for your help, Altrea. I'm going to keep looking into this....
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Re: Migrating from WOS database to XAMPP

Postby edj » 11. December 2012 20:40

I checked into the use of MIMEs:

My mime.info file contains the following line:

image/svg+xml application/svg+xml application/svg image/svg [DRAWING]

My defines.php file has the following line:

define( 'MEDIATYPE_DRAWING', 'DRAWING' ); // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.

I added the following line to my .htaccess file:

AddType image/svg+xml svg

Now .htaccess has the following two lines:

Allow from all
AddType image/svg+xml svg

As far as I can tell, I'm doing everything I should, but STILL no .svg files are being rendered. I still need to click on the filename to make the image pop up.

Any other suggestions?
edj
 
Posts: 11
Joined: 23. November 2012 16:03
Location: Melbourne, FL USA
Operating System: Windows 7

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 131 guests