Skip to main content
Topic: [SMF 2.1] Importer (Read 19511 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: [SMF 2.1] Importer

Reply #15

db was on Beta 2 files were Beta 3, the beta 3 upgrade.php is broken so I never got around to updating db, but its all sorted and working fine so far :)
Bryan Deakin
Former Project Manager/Customiser/Marketing @ SMF

Re: [SMF 2.1] Importer

Reply #16

Will probably be giving this a whirl soon.  Before this gets underway, here's a question regarding paths and source vs. destination.

If the Source forum exists in /home/XXXX/public_html, I would like the Destination to wind up in the same path.  It is possible to accomplish this with a complex series of transferring files between folders, repair_settings.php, etc.  Is there an easier way to accomplish this?  Thanks!

Re: [SMF 2.1] Importer

Reply #17

Setup a shadow site for testing purposes.  This is an error given while importing members:

QuoteMessage: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
Trace: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
Line: 2967


What is the proper fix for this?   Thanks! 

Re: [SMF 2.1] Importer

Reply #18

Sorry, I missed the green icon... :-[

It's a deprecation notice, so for the moment it doesn't affect the outcome (unless in AJAX calls that could break the XML...), so if the conversion is able to go on there is nothing wrong.
For sure there is something to change in the code.
Bugs creator.
Features destroyer.
Template killer.

Re: [SMF 2.1] Importer

Reply #19

Quote from: emanuele – Sorry, I missed the green icon... :-[

It's a deprecation notice, so for the moment it doesn't affect the outcome (unless in AJAX calls that could break the XML...), so if the conversion is able to go on there is nothing wrong.
For sure there is something to change in the code.

Hhmmm.  Interesting.  The import process ceased when it gave this error.  Is there a way to make it proceed anyway?

Re: [SMF 2.1] Importer

Reply #20

In import.php, find:
Code: [Select]
error_reporting(E_ALL);
and replace it with either:
Code: (conservative version) [Select]
error_reporting(E_ALL & ~E_DEPRECATED);
or:
Code: (aggressive version) [Select]
error_reporting(0);

The first silences only the deprecated warnings, the second silence any error.
Probably the second is fine as well.
Bugs creator.
Features destroyer.
Template killer.

Re: [SMF 2.1] Importer

Reply #21

Thanks emanuele.  Still no luck.  Same error. 

QuoteImporting settings... ✔
Importing members...
Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
Trace: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
Line: 2967

Even commenting out the error reporting line results in the same.   :(

Re: [SMF 2.1] Importer

Reply #22

IIRC Spuds fixed that one ... Where did you download the importer? I'd recommend the latest master branch:
https://github.com/OpenImporter/openimporter/archive/master.zip
Thorsten "TE" Eurich
------------------------

Re: [SMF 2.1] Importer

Reply #23

I'll try that.  Thanks!   I downloaded the one in the first post of this thread.   ;)

Re: [SMF 2.1] Importer

Reply #24

That starts off better.  It gets stuck with a white screen around step 1, substep 17.  Recommendations?

Re: [SMF 2.1] Importer

Reply #25

Quote from: badmonkey – That starts off better.  It gets stuck with a white screen around step 1, substep 17.  Recommendations?
What's the exact error message? (Copy the text or attach a screenshots please)
Thorsten "TE" Eurich
------------------------

Re: [SMF 2.1] Importer

Reply #26

Hi TE.  It's just a white screen with no message.

Re: [SMF 2.1] Importer

Reply #27

Got it.  Increasing the memory using ini_set did the trick.  Thanks for the help everyone.  Good thing for dry runs!   :D

Re: [SMF 2.1] Importer

Reply #28

Out of curiosity, what is the default value?
Bugs creator.
Features destroyer.
Template killer.

Re: [SMF 2.1] Importer

Reply #29

It wasn't set in the script.  The php memory limit on my server is 20M.