adrian Posted December 3, 2014 Author Posted December 3, 2014 Hey Joss - thanks for the file. The issue was with some broken images embedded into your blog posts - some linking to an old joomla site . Migrator now handles broken images properly so no errors. I also took the opportunity to add a few more fixes and enhancements to embedded images and captions - links to the original sized version now also work (although I am wondering the best way to add a class for lightbox display of these. I don't want to assume the class that users want, so maybe this needs to be a configurable setting - any thoughts?). Please try the latest versions of both ProcessMigrator and MigratorWordpress (again from my fork) and let me know how you go. Here's a screenshot of what one of blog posts looks like for me once imported. Be patient - it can take quite some time to download all those images, but it will work 1
Joss Posted December 3, 2014 Posted December 3, 2014 I think with the lightbox side you could add a field for a class, but some lightboxes need more than that and it could get complicated. Maybe a note in the instructions that this might be something better handled with a bit of javascript on the fly. I might find a mix between the two useful - adding a class at processing at least identifies the image and then one could decide what to do later. On the other hand, a blog might not always have images linked to bigger version - so not sure what to do then....
qtguru Posted December 20, 2014 Posted December 20, 2014 Everytime i try to Migrate from Wordpress to Processwire this is what i get: https://docs.google.com/file/d/0B0Ai3JEarq31U0F6dWtfU3NrQ2M/edit?usp=drivesdk
adrian Posted December 20, 2014 Author Posted December 20, 2014 Everytime i try to Migrate from Wordpress to Processwire this is what i get: https://docs.google.com/file/d/0B0Ai3JEarq31U0F6dWtfU3NrQ2M/edit?usp=drivesdk Can you PM me the zip or JSON file you are trying to import so I can take a look?
qtguru Posted December 20, 2014 Posted December 20, 2014 Am not importing a JSON its a wordpress.xml am trying to import to Processwire using Nico's MigratorWordpress. wow that was a fast response
qtguru Posted December 20, 2014 Posted December 20, 2014 Any finally got it to import my contents but i had to comment the following if(empty($fp)){ $this->error("Missing required ZIP or JSON Source"); if($this->session->migratorFilesDir && file_exists($this->session->migratorFilesDir)) $this->recursiveDelete($this->session->migratorFilesDir); //$this->session->redirect('./'.$this->session->type); return $form->render(); }
adrian Posted December 20, 2014 Author Posted December 20, 2014 I am not really sure on why that would happen - did the import actually work properly after commenting out that check? The fact that $fp is empty at that point in the code suggests that the conversion from the xml into a json file ready for parsing by migrator didn't work. But if it all worked as expected for you, then I'll just add it to my list of things to keep an eye on.
qtguru Posted December 20, 2014 Posted December 20, 2014 Ignore what i wrote it imported also without the comment, am still going to look at it again in the morning take care
qtguru Posted December 27, 2014 Posted December 27, 2014 So After the holidays decided to give it a try and using it with WordPress Migrator i keep getting these issues. Here is a screenshot https://www.flickr.com/photos/89036056@N08/16093143726/lightbox/https://www.flickr.com/photos/89036056@N08/14166484320/in/photostream/lightbox/ For some weird reason i can't attach images here
adrian Posted December 27, 2014 Author Posted December 27, 2014 I am not sure why you are getting that missing required zip or json error, but it would be helpful if you could PM me the xml file so I can test. I don't really understand what is wrong in the second image you posted. To attach images here, you need to click the "More Reply Options" button.
adrian Posted December 27, 2014 Author Posted December 27, 2014 Thanks - I have been doing lots of testing with your file and can't replicate the "missing required zip or json" error. I did however find some bugs regarding image import in certain situations that I have just fixed, so please grab the latest versions of both Migrator and MigratorWordpress. I will send some screenshots showing the properly imported content in reply to the PM you sent. In an attempt to figure out why you are getting that error, can you please try logging the value of: $this->session->jsonFilename and also uncomment the exit on line 882. Then make sure that there is some json content in the file at the path that should be stored in: $this->session->jsonFilename
qtguru Posted December 27, 2014 Posted December 27, 2014 Thanks now i am more encourage knowing it works on your end. I will do as specified and debug it and monitor the variables. I wanted to be sure I wasn't an exception thanks alot andrian. 1
qtguru Posted December 30, 2014 Posted December 30, 2014 While trying to get some contents into my site i got the following issue, been familiar with PHP Development I tried looking for codes that tried to do the similar: $SessionFakeObject->set('keyStore',$DatabaseInstance); As the above will cause the $DatabaseInstance to be serialized which is not allowed, however I have tried debugging and can't really point what could be the cause (also my Zend Debugger is busted) so if anyone has experienced such error please respond so i look at how to fix it. As for the previous error am behind a Firewall so that's explainable
adrian Posted December 30, 2014 Author Posted December 30, 2014 Sepiroth - I moved your post here, because all those relate to Migrator. The first one regarding Github is surprising - perhaps they were down momentarily. Please let me know if you continue to see that one. The serialize error is also a mystery to me - I see it occasionally when I use Migrator - it seems to be random and it doesn't seem to affect the import process. I don't do any database serialization in the module at all. I need to investigate further at some point, but I think for the moment it can be safely ignored.
qtguru Posted December 30, 2014 Posted December 30, 2014 Sepiroth - I moved your post here, because all those relate to Migrator. The first one regarding Github is surprising - perhaps they were down momentarily. Please let me know if you continue to see that one. The serialize error is also a mystery to me - I see it occasionally when I use Migrator - it seems to be random and it doesn't seem to affect the import process. I don't do any database serialization in the module at all. I need to investigate further at some point, but I think for the moment it can be safely ignored. The first one is all me I work in Switching company (Online Payment and all), so our firewall is pretty strong so that I know is as a result of the firewall, however the second error which is quite confusing because there's no assign of any Database instance in a session in your code. so am wondering how that's happening. Spent the whole night trying to get my Zend Debugger working but failed once its up i will check the Debug steps.
qtguru Posted December 30, 2014 Posted December 30, 2014 I can access https://api.github.com/repos/adrianbj/ProcessWirePageLists/contents/ directly on my browser.
qtguru Posted January 1, 2015 Posted January 1, 2015 Okay so i switched to Xdebug and spent the whole night debugging and during the Xdebug it never broke at ll, it converted the code and returned the json and exited as expected. This has nothing to do with the Module/Processwire if not i should have been thrown an exception during the debugging. so i will research more on this but i took out the thirdparty.json it outputted after monitoring the code. will simply import that and move on with life.
qtguru Posted January 1, 2015 Posted January 1, 2015 Yippe it works silly me i uncommented the exit code it imported thanks alot.
qtguru Posted January 1, 2015 Posted January 1, 2015 All the Post imported into ProcessWire from WordPress thanks alot am really glad thanks for the support. 1
adrian Posted January 3, 2015 Author Posted January 3, 2015 Very glad it is working for you as expected. But I am curious what, if any changes you made. Did the Github issue fix itself? What about the missing zip/json error - was that just a result of the exit code commenting? Is there anything else I should know about? Thanks again for your extensive testing - did you ever figure out anything around that serialization error?
qtguru Posted January 3, 2015 Posted January 3, 2015 The exit code stops the script so it was the main reason i assumed the PDOException halted it but when i commented it, the script works perfectly. I no longer get the Missing Json or Zip Source message. As for the PDO Serialization issue i guess it's something we have to keep in mind, I have researched and scanned all PW source code I can't see any reason why it should. but I will occasionally look into it gradually. 1
manlio Posted January 18, 2015 Posted January 18, 2015 Hi, I'm trying to import pages with images from a website to another (PW 2.5.3 both) using migrator module, but I get errors and it doesn't work for me. The errors appear during import. I set the home as parent and then I click "upload and create content" button and the result are shown in this images. If instead I check "Edit Imported content", after I click "Upload and create content" button, everything seems to work but in the end of the page I have this error And after when I click "Create Content" I have this one This the first time I use migrator. Thank you for any help.
qtguru Posted January 18, 2015 Posted January 18, 2015 Has anyone tried importing an XML the size of 30mb when i try to nothing happens it just renders the same page. will try increasing my post_max_size and see what happens.
qtguru Posted January 18, 2015 Posted January 18, 2015 Okay so increasing post_max_size works but if it's lower it fails silently so maybe a feature would be a message that checks the size of file against the ini_get('post_max_size') and display that to the user. should i create a pull-request for that ? Happy Sunday 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now