Wedge

Public area => The Pub => Importing into Wedge => Topic started by: txcas on February 26th, 2014, 06:43 PM

Title: SMF 2 to Wedge importer errors
Post by: txcas on February 26th, 2014, 06:43 PM
I just tried to import my forum using the latest importer and got hundreds of these errors:
Code: [Select]
Importing settings... ✔
Importing members...
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/creedmoo/public_html/upgrade/import.php(743) : eval()'d code on line 8

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/creedmoo/public_html/upgrade/import.php(743) : eval()'d code on line 8
Code: [Select]
INSERT INTO `creedmoo_wedge`.wedge_members
 (id_member, member_name, date_registered, posts, id_group, lngfile, last_login, real_name, instant_messages, unread_messages, new_pm, buddy_list, pm_ignore_list, pm_prefs, passwd, email_address, personal_text, gender, birthdate, website_url, website_title, location, hide_email, show_online, time_format, signature, time_offset, avatar, pm_email_notify, usertitle, notify_announcements, notify_regularity, notify_send_body, notify_types, member_ip, member_ip2, is_activated, validation_code, id_msg_last_visit, additional_groups, smiley_set, id_post_group, total_time_logged_in, password_salt, ignore_boards, warning, passwd_flood, pm_receive_from, message_labels, secret_question, secret_answer, mod_prefs, data)
 VALUES...
All members and their info is listed for the values.  After that I get.
Code: [Select]
Unknown column 'new_pm' in 'field list'

Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 26th, 2014, 10:54 PM
I'm on it. Will commit fixes asap.
Posted: February 26th, 2014, 10:44 PM

Committed. Keep me posted!
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 26th, 2014, 11:24 PM
Trying now...
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 26th, 2014, 11:51 PM
Now I get:
Code: [Select]
Importing...
Message: mysqli_free_result() [function.mysqli-free-result]: Couldn't fetch mysqli_result

Trace: mysqli_free_result() [function.mysqli-free-result]: Couldn't fetch mysqli_result

Line: 1810

File: /home/creedmoo/public_html/upgrade/import.php
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 26th, 2014, 11:57 PM
Is this during the attachment import step..?
If yes, please test the new committed version.
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 27th, 2014, 12:06 AM
I just tried the latest commit and now get:
Code: [Select]
Importing settings... ✔
Importing members... Unsuccessful!
 This query:

SELECT
 id_member, member_name, date_registered, posts, id_group, lngfile, last_login,
 real_name, instant_messages, unread_messages, buddy_list, pm_ignore_list,
 pm_prefs, passwd, email_address, personal_text, gender, birthdate,
 website_url, website_title, location, hide_email, show_online,
 time_format, signature, time_offset, avatar, pm_email_notify,
 usertitle, notify_announcements, notify_regularity, notify_send_body,
 notify_types, member_ip, member_ip2, is_activated, validation_code,
 id_msg_last_visit, additional_groups, smiley_set, id_post_group,
 total_time_logged_in, password_salt, ignore_boards,
 IFNULL(warning, 0) AS warning, passwd_flood, pm_receive_from,
 message_labels, secret_question, secret_answer, mod_prefs, '' AS data
 FROM `creedmoo_wedge`.wedge_members
 LIMIT 0, 500;
Caused the error:

Unknown column 'message_labels' in 'field list'
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 27th, 2014, 12:09 AM
message_labels is a valid members table fields in SMF 2... I don't know why it wouldn't work.

@TE, what do you think..? Is the <preparsecode> block buggy..?

Off to bed, personally.
Title: Re: SMF 2 to Wedge importer errors
Post by: live627 on February 27th, 2014, 01:09 AM
SELECT
...
 FROM `creedmoo_wedge`.wedge_members
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 27th, 2014, 03:46 AM
It worked, but avatars are gone.  I think the last error was caused by the previous failed attempts to migrate the forum.
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 27th, 2014, 10:21 AM
John, what are you trying to say..?

txcas, avatars should have been imported. Are attachments okay?
Make sure you didn't forget any of these steps:
- Let's say SMF is in /forum/
- Install Wedge in /forum2/ (or a sub-folder, but it requires some more work later)
- Run the importer
- Make sure /forum2 is working fine.
- Now, rename the /forum folder to /forum3, and immediately rename /forum2 to /forum
- Go to /forum, admin area, go to the 'Path' page (first sub-menu in the admin menu!)
- Fix all paths.
- Go to avatar and attachment settings pages, and fix all paths.
- IIRC, you also have to go to the skin settings page, and fix paths.

I should be building a tool to automatize the fixing of ALL paths with the 'wrong' folder in their name, if the main folder was modified... Oh yeah, that would be swell.

At this point, Aeva Media items still aren't imported. You'll need to move /forum3/media files to /forum/media, and then manually import AeMe database tables into the new location... Well, that one is NOT fun. Unfortunately, because @TE doesn't seem to want to finish the importer tool to support AeMe files (and I'm still not familiar enough with it to deal with adding an import step myself), upgrading your forum at this point MAY mean you'll lose your existing AeMe data forever.

Also, looking at your site, I really need to do something about the header CSS... Obviously, the header at wedge.org is working well, and it's not so good elsewhere, because I have custom.css CSS I never bothered to commit, but I really need to do it at this point.
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 27th, 2014, 01:16 PM
Avatars and attachments are working now that I changed their paths.  Pretty URLs is the only thing that is broken because they are trying to use the old path.
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 27th, 2014, 02:35 PM
You may have to run phpMyAdmin, edit the wedge_boards table, and modify all 'pretty_url' fields manually to match your new URL.

This is something that is better done with an automatic script, I guess, but I won't start work on this until I have a complete list of URLs and paths I'd need to update on the fly.
Also, I'm still wondering whether it's "worth" keeping variables such as $jsdir and $cssdir and others, when there really isn't much of a reason to 'hide' these files from view to visitors.
Title: Re: SMF 2 to Wedge importer errors
Post by: Pandos on February 27th, 2014, 02:56 PM
Am I wrong?
You can change your URL in Admin->Boards?
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 27th, 2014, 03:02 PM
Quote from Pandos on February 27th, 2014, 02:56 PM
Am I wrong?
You can change your URL in Admin->Boards?
No settings for pretty URLs paths are exposed in the admin UI.  I documented all the paths that need to be changed here(http://wedge.org/pub/8484/paths-that-need-to-be-updated-after-moving-wedge-to-a-different-directory/msg294473/#new).
Title: Re: SMF 2 to Wedge importer errors
Post by: Pandos on February 27th, 2014, 03:10 PM
Go to: /do/admin/?area=manageboards;sa=board;boardid=1 (or whatever your boardid is).
There you can change PURL's settings for the desired board. Normally there is a select box where you can choose your URL (if defined).
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 27th, 2014, 03:12 PM
Actually Pandos is right, board settings allow you to choose a new URL, so you might want to 'simply' visit all of your board pages again, then simply hit Save to re-generate the pretty URL. It might work.

:edit: Ninja'd! :lol:
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 27th, 2014, 03:38 PM
I finally found it.  You don't see that path unless you enable Pretty URLs for boards.  I had that disabled since pretty URLs were breaking the forum.
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 27th, 2014, 03:59 PM
Just what I feared!
But enabling them could also bring its lot of support requests...
Title: Re: SMF 2 to Wedge importer errors
Post by: txcas on February 27th, 2014, 04:17 PM
Yes, I put the forum in maintenance mode and fixed all the pretty URLs for boards.  Now everything in pretty URLs is working fine!
Title: Re: SMF 2 to Wedge importer errors
Post by: TE on February 27th, 2014, 09:10 PM
Quote from Nao on February 27th, 2014, 12:09 AM
message_labels is a valid members table fields in SMF 2... I don't know why it wouldn't work.

@TE, what do you think..? Is the <preparsecode> block buggy..?

Off to bed, personally.
message_labels is a field in SMF but is it still available in Wedge? If not there needs to be a
Code: [Select]
<preparsecode>
unset($row['message_labels']);
</preparsecode>
somewhere for that step.

Sorry, I'm ultra-busy at the moment, my wife's pregnant and the baby is coming soon ^_^
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on February 27th, 2014, 11:17 PM
Quote from TE on February 27th, 2014, 09:10 PM
message_labels is a field in SMF but is it still available in Wedge?
Nope...
Quote
If not there needs to be a
Code: [Select]
<preparsecode>
unset($row['message_labels']);
</preparsecode>
somewhere for that step.
And it's there. Along with all SMF fields that were moved to the data field... :-/
Quote
Sorry, I'm ultra-busy at the moment, my wife's pregnant and the baby is coming soon ^_^
Hey, congratulations!
When is she due?
Title: Re: SMF 2 to Wedge importer errors
Post by: TE on March 2nd, 2014, 08:58 AM
tested the importer from the wedge repo, it seems to work fine for me (at least the members import)

but I get a
Code: [Select]
Data too long for column 'can_collapse' at row 1
Did you change the can_collapse to BIT(1)?
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on March 2nd, 2014, 09:49 AM
I guess I couldn't resist... :^^;:

https://github.com/Wedge/wedge/blob/master/install/install.sql
Title: Re: SMF 2 to Wedge importer errors
Post by: TE on March 2nd, 2014, 08:51 PM
ok, Importer seems completely broken (MYSQL strict mode) and I have no clue how to fix that..
that's the old code, which is generated from the categories SELECT

Code: [Select]
INSERT INTO `wedgem`.wedge_categories
(id_cat, name, cat_order, can_collapse)
VALUES ('6', 'Film, Fernsehen & Musik', '0', '1'),
Never worked with binary before, but reding the docs that needs to be
Quote
INSERT INTO `wedgem`.wedge_categories
(id_cat, name, cat_order, can_collapse)
VALUES ('6', 'Film, Fernsehen & Musik', '0', b'1'),
Put it in a quote just to mark the important change in red.
https://dev.mysql.com/doc/refman/5.0/en/bit-type.html
Not sure but I feel the importer would need to check the destination field in order to determine if the field is TINYINT or BIT and then modify the INSERT ..
What's the benefit of BIT(1)?  Saves a few bytes in the DB but is slower than ENUM and way more complicated than INT or TINYINT.
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on March 2nd, 2014, 10:45 PM
I haven't heard about it being slower.
One issue with bit is that mysql doesn't accept queries where it's set as a string. But it Worked fine as a number.
Did you try replacing b'1' with just 1?

Also you're the first to find a bug with this. Maybe no one uses strict mode..?
Title: Re: SMF 2 to Wedge importer errors
Post by: TE on March 3rd, 2014, 11:40 AM
That's the problem. that b'value' isn't there, but it needs to be.. (or I'm misreading the docs)
I currently get the 
Code: [Select]
Data too long for column 'can_collapse' at row 1

Did you change your database layer in order to properly support bit inserts?
https://dev.mysql.com/doc/refman/5.0/en/bit-field-literals.html
a proper INSERT would be
INSERT INTO table SET bit_field = b'1';
wheras the importer basically does this:
INSERT INTO table SET bit_field = '1';

Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on March 3rd, 2014, 12:42 PM
Again, as I said, I got MySQL errors when inserting '1' values through install.sql, but I fixed that by turning them into integers.

So, a proper INSERT would also be
INSERT INTO table SET bit_field = 1;

I could simply test for is_integer() before inserting some imported data, and doing without single quotes in this case...

Or is it that can_collapse accepts more values than 0 or 1? Anything I converted to BIT(1) was thoroughly tested (AFAIK) against this possibility (a lazy habit of earlier SMF developers, I think!)
Title: Re: SMF 2 to Wedge importer errors
Post by: TE on March 3rd, 2014, 01:25 PM
ahhhh ok , that's probably the problem.. I'll try it with a forced INT instead.
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on March 3rd, 2014, 05:19 PM
Please keep me posted! :)
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on March 10th, 2014, 03:32 PM
Bump for @TE! ;)
Title: Re: SMF 2 to Wedge importer errors
Post by: gevv on March 20th, 2014, 07:28 PM
I'm having the same problem :)
Quote from txcas on February 27th, 2014, 12:06 AM
I just tried the latest commit and now get:
Code: [Select]
Importing settings... ✔
Importing members... Unsuccessful!
 This query:

SELECT
 id_member, member_name, date_registered, posts, id_group, lngfile, last_login,
 real_name, instant_messages, unread_messages, buddy_list, pm_ignore_list,
 pm_prefs, passwd, email_address, personal_text, gender, birthdate,
 website_url, website_title, location, hide_email, show_online,
 time_format, signature, time_offset, avatar, pm_email_notify,
 usertitle, notify_announcements, notify_regularity, notify_send_body,
 notify_types, member_ip, member_ip2, is_activated, validation_code,
 id_msg_last_visit, additional_groups, smiley_set, id_post_group,
 total_time_logged_in, password_salt, ignore_boards,
 IFNULL(warning, 0) AS warning, passwd_flood, pm_receive_from,
 message_labels, secret_question, secret_answer, mod_prefs, '' AS data
 FROM `creedmoo_wedge`.wedge_members
 LIMIT 0, 500;
Caused the error:

Unknown column 'message_labels' in 'field list'
Title: Re: SMF 2 to Wedge importer errors
Post by: gevv on March 20th, 2014, 07:46 PM
I've selected my fault SMF 2 RC smf2 no problem   import ok :)
Title: Re: SMF 2 to Wedge importer errors
Post by: Nao on March 21st, 2014, 03:19 PM
@TE, do you think it's possible to make a version that ignores any missing input fields from the database?
Title: Re: SMF 2 to Wedge importer errors
Post by: TE on March 24th, 2014, 01:11 PM
Quote from Nao on March 21st, 2014, 03:19 PM
@TE, do you think it's possible to make a version that ignores any missing input fields from the database?
mhh, that's getting complicated ..

Would require a "SHOW COLUMNS FROM `table`" for each and every table + related code & error handling in order to compare the existing fields with the query.
I feel it might be "overkill" for a rare case.
Title: Re: SMF 2 to Wedge importer errors
Post by: Kian on April 16th, 2014, 06:17 PM
I tried (twice) a new fresh install and import from my SMF 2.0.6 forum.

The import tool fails on the smileys :
Importation en cours...

(click to show/hide)
Importing settings... ✔
Importing members... ✔
Importing attachments... ✔
Importing avatars... ✔
Importing categories... ✔
Importing collapsed categories... ✔
Importing boards... ✔
Importing topics... ✔
Importing messages... ✔
Importing polls... ✔
Importing poll choices... ✔
Importing poll votes... ✔
Importing personal messages... ✔
Importing pm recipients... ✔
Importing pm rules... ✔
Importing board moderators... ✔
Importing mark read data (topics)... ✔
Importing mark read data... ✔
Importing notifications... ✔
Importing membergroups... ✔
Importing group moderators... ✔
Importing permission profiles... ✔
Importing permissions... ✔
Importing board permissions... ✔
Importing smileys... ✔
Copying smileys...

Code: [Select]
Message: mkdir(): Permission denied
Trace: mkdir(): Permission denied
Line: 1641
File: /opt/sites/beta.potesnroll.com/www/import.php
Title: Re: SMF 2 to Wedge importer errors
Post by: Pandos on April 16th, 2014, 07:23 PM
Wedge dir is writeable and running under the same user as your webserver?
Title: Re: SMF 2 to Wedge importer errors
Post by: Kian on April 16th, 2014, 08:07 PM
Quote from Pandos on April 16th, 2014, 07:23 PM
Wedge dir is writeable and running under the same user as your webserver?
It seems so :

Code: [Select]
nova:/opt/sites/beta.potesnroll.com/www# ps fauxw | grep apache | grep -v grep
root     30529  0.0  0.7  76636 15540 ?        Ss   Apr09   0:19 /usr/sbin/apache2 -k start
www-data 18138  0.9  1.0  85440 21052 ?        S    15:30   2:33  \_ /usr/sbin/apache2 -k start
www-data 18141  0.9  1.0  85524 20880 ?        S    15:30   2:38  \_ /usr/sbin/apache2 -k start
www-data 18386  0.9  1.0  85332 20884 ?        S    15:31   2:33  \_ /usr/sbin/apache2 -k start
www-data 29651  1.0  1.0  85708 20956 ?        S    16:50   1:59  \_ /usr/sbin/apache2 -k start
www-data 29658  1.2  1.0  86404 21844 ?        S    16:50   2:21  \_ /usr/sbin/apache2 -k start
www-data  7594  0.8  1.0  85404 20856 ?        S    18:00   1:06  \_ /usr/sbin/apache2 -k start
www-data  7804  0.8  0.9  85372 20188 ?        S    18:01   1:05  \_ /usr/sbin/apache2 -k start
www-data 16777  0.7  0.9  85296 19752 ?        S    18:59   0:29  \_ /usr/sbin/apache2 -k start
www-data 25015  0.7  0.9  85376 20000 ?        S    19:49   0:07  \_ /usr/sbin/apache2 -k start
www-data 26889  0.7  0.9  85416 19528 ?        S    20:01   0:02  \_ /usr/sbin/apache2 -k start
nova:/opt/sites/beta.potesnroll.com/www# ll
total 300
drwxr-xr-x 15 www-data www-data  4096 Apr 16 17:51 assets
drwxr-xr-x  2 www-data www-data 61440 Apr 16 17:55 attachments
-rw-r--r--  1 www-data www-data   560 Apr 16 17:51 changelog.txt
-rw-r--r--  1 www-data www-data  5530 Apr 16 17:51 contributors.txt
drwxr-xr-x  7 www-data www-data  4096 Apr 16 17:51 core
-rw-r--r--  1 www-data www-data  1883 Apr 16 17:51 DCO.txt
drwxr-xr-x  7 www-data www-data  4096 Apr 16 17:51 gz
-rw-r--r--  1 www-data www-data  6514 Apr 16 17:54 import_de.xml
-rw-r--r--  1 www-data www-data  6304 Apr 16 17:54 import_en.xml
-rw-r--r--  1 www-data www-data  7086 Apr 16 17:54 import_fr.xml
-rw-r--r--  1 www-data www-data  8960 Apr 16 17:51 index.php
drwxr-xr-x  2 www-data www-data  4096 Apr 16 17:51 install
-rw-r--r--  1 www-data www-data  1517 Apr 16 17:54 LICENSE
-rw-r--r--  1 www-data www-data  6658 Apr 16 17:51 license.txt
drwxr-xr-x  8 www-data www-data  4096 Apr 16 17:51 media
-rw-r--r--  1 www-data www-data 11898 Apr 16 17:54 mybb16_to_wedge.xml
-rw-r--r--  1 www-data www-data 10993 Apr 16 17:54 phpbb3_to_wedge.xml
drwxr-xr-x  2 www-data www-data  4096 Apr 16 17:51 plugins
-rw-r--r--  1 www-data www-data  1219 Apr 16 17:54 README.md
-rw-r--r--  1 www-data www-data   947 Apr 16 17:53 Settings_bak.php
-rw-r--r--  1 www-data www-data   947 Apr 16 17:53 Settings.php
-rw-r--r--  1 www-data www-data 14831 Apr 16 17:54 smf11_to_wedge.xml
-rw-r--r--  1 www-data www-data 21758 Apr 16 17:54 smf2RC_to_wedge.xml
-rw-r--r--  1 www-data www-data 21799 Apr 16 17:54 smf2_to_wedge.xml
-rw-r--r--  1 www-data www-data  8434 Apr 16 17:51 subscriptions.php
-rw-r--r--  1 www-data www-data 11265 Apr 16 17:54 vbulletin4_to_wedge.xml
-rw-r--r--  1 www-data www-data 12864 Apr 16 17:54 wbb3_to_wedge.xml
-rw-r--r--  1 www-data www-data  5863 Apr 16 17:54 wordpress3_to_wedge.xml
nova:/opt/sites/beta.potesnroll.com/www#

nova:/opt/sites/beta.potesnroll.com/www# ll ../
total 3024
drwxr-xr-x  2 root     root        4096 Apr  5 12:50 importer-master
drwxr-xr-x  2 www-data www-data    4096 Feb 28 15:46 logs
-rw-r--r--  1 root     root     3069011 Apr 16 15:21 master.zip
drwxr-xr-x  5 www-data www-data    4096 Apr 15 07:51 wedge-master
drwxr-xr-x  9 www-data www-data    4096 Apr 16 18:09 www
drwxr-xr-x 11 www-data www-data    4096 Apr 16 15:26 www.20140416
nova:/opt/sites/beta.potesnroll.com/www#


Error log  (perhaps not from the right period)

Code: [Select]
[Wed Apr 16 17:00:02 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:02 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:02 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:06 2014] [error] [client 217.174.199.129] File does not exist: /opt/sites/beta.potesnroll.com/www/n
[Wed Apr 16 17:00:13 2014] [error] [client 217.174.199.129] Directory index forbidden by Options directive: /opt/sites/beta.potesnroll.com/www/install/
[Wed Apr 16 17:00:32 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:32 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:32 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:41 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:42 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:43 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:43 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:43 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:43 2014] [error] [client 217.174.199.129] PHP Warning:  copy(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 182
[Wed Apr 16 17:00:43 2014] [error] [client 217.174.199.129] PHP Warning:  require_once(/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php): failed to open stream: No such file or directory in /opt/sites/beta.potesnroll.com/www/index.php on line 191
[Wed Apr 16 17:00:43 2014] [error] [client 217.174.199.129] PHP Fatal error:  require_once(): Failed opening required '/opt/sites/beta.potesnroll.com/www/gz/app/Class-System.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/sites/beta.potesnroll.com/www/index.php on line 191
Title: Re: SMF 2 to Wedge importer errors
Post by: Kian on April 17th, 2014, 01:40 PM
This is the part that fails :

Code: [Select]
public static function copy_smileys($source, $dest)
        {
                if (!is_dir($source) || !($dir = opendir($source)))
                        return;

                while ($file = readdir($dir))
                {
                        if ($file == '.' || $file == '..')
                                continue;

                        // If we have a directory create it on the destination and copy contents into it!
                        if (is_dir($source . '/' . $file))
                        {
                                if (!is_dir($dest))
                                        @mkdir($dest . '/' . $file, 0777);
                                self::copy_dir($source . '/' . $file, $dest . '/' . $file);
                        }
                        else
                        {
                                if (!is_dir($dest))
                                        @mkdir($dest . '/' . $file, 0777);
                                copy($source . '/' . $file, $dest . '/' . $file);
                        }
                }
                closedir($dir);

I could perhaps manually create the folder and chmod it before running the installer :hmm:
Title: Re: SMF 2 to Wedge importer errors
Post by: Kian on April 17th, 2014, 02:36 PM
Same problem.
Title: Re: SMF 2 to Wedge importer errors
Post by: Kian on April 17th, 2014, 11:47 PM
I tried tonight ton convert another forum, Eclipse Totale, which is a dead forum.

The process stopped with :

Code: [Select]
Importation en cours...

Message: Undefined property: Importer::$xml
Trace: Undefined property: Importer::$xml
Line: 525
File: /opt/sites/eclipse.potesnroll.com/www/import.php

I have no clue if everthing is globally OK. The forum being dead, I'll leave it with Wedge and will try to check. If it's a real problem, I'll rollback to SMF, not a problem ^^

( http://eclipse.potesnroll.com/ )
Title: Re: SMF 2 to Wedge importer errors
Post by: Kian on April 18th, 2014, 12:08 AM
@Nao : Tu penses qu'il manque quelque chose ?
A vu de nez, non, le nombre de messages est le bon. Je ne sais pas sur quelle étape ça a coincé.
Title: Re: SMF 2 to Wedge importer errors
Post by: Gaza07 on January 22nd, 2016, 11:06 AM
I have just setup wedge and tried to import my database from smf 2.011 and got this error after it imported the members
Quote
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 12288 bytes) in /home/multirot/public_html/wedge-master/importer-master/import.php(2061) : runtime-created function on line 5
any ideas how to get past this :unsure:
Title: Re: SMF 2 to Wedge importer errors
Post by: Pandos on January 26th, 2016, 03:40 PM
Try to lift up your memory limit in php.ini. This should do the trick.
Title: Re: SMF 2 to Wedge importer errors
Post by: Gaza07 on January 26th, 2016, 07:29 PM
I dont have access to the file on my server, it already used a large amount of memory :wow: not sure if my provider will allow more, my database is 152mb
Title: Re: SMF 2 to Wedge importer errors
Post by: CerealGuy on February 5th, 2016, 12:29 AM
Try to convert it on you computer and just import the converted database on your webspace.
Title: Re: SMF 2 to Wedge importer errors
Post by: Gaza07 on February 5th, 2016, 01:20 AM
Is there a converter I can run on my computer ? :unsure:
Title: Re: SMF 2 to Wedge importer errors
Post by: CerealGuy on February 8th, 2016, 12:10 AM
Just install xampp or something similiar.