HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Using the Import / ocPortal Site Merger for a site on the same server

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#97742 (In Topic #19343)

Honoured member

I have a reseller hosting account that my site and my uncle's news and editorial site is located on.  My uncle has decided that he is going to retire, and no longer wishes to publish on his site.  I'd like to import his news and editorial articles in to my own site so I can offer them as content.  I launched the importer and went through all the steps and was successful.  However when I try to import the News archive I get an internal server error along with a error 404.  It has imported his categories and even started on import articles.  Can anyone think of the reason it would be, I suppose, timing out and stopping the import process?
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#97747
Avatar

Well-settled

Can you not just carry on the importer, by refreshing the browser, or by going back in the browser and carrying on.

I had this problem when importing a lot of data but it does eventually get there in the end.
Make sure you do not start a fresh session and always carry on with the current one.

Back to the top
 
Posted
Rating:
#97750
Avatar

Kenno may well be right.

However if you do have a continued problem, I am willing to help. I would need FTP access to your target site, and whatever database details you have to put into the importer to start the import. So feel free to open a bug report support ticket.

You mentioned you get an internal server error (which is a 500 error) and also a 404 error. I wonder if it wasn't really a 404 error, just a 500 error. A 500 error does imply it timed out, which matches what Kenno said.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#97932

Honoured member

Thanks for the help Chris.  The import was a big success.  Now is there a way to import the comments that wnet with the articles?  I imported the forums and all.  The only thing I've not done is import feedback and it is telling me that it is dependent on importing configuration and I didn't want to do that out of fear it would screw with the configuration for my own site.
Back to the top
 
Posted
Rating:
#97942
Avatar

Hi,

I've fixed a few problems with the comment import. They are now properly attached :).
The only issue is that the link back to the news from the spacer posts on the forum is incorrect; our importer can't currently handle updating this currently.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#97987

Honoured member

Thanks
Back to the top
 
Posted
Rating:
#98516

Honoured member

When importing the pre-mentioned site, both us and my uncle have a recipe catalogue.  The difference between the two catalogues is categories, which his has many more than ours.  When the importing was done the entries of his were imported, but aren't showing because we don't have those categories.  I thought maybe if I went in and created those categories in our catalogue that they would show, but now I'm not certain of that.  When I went to create a "Soups" category I notice in the list of category to place the new one under there's already a "Soups."  Is there a way of making those other categories that aren't showing to show up?  If not, is there a way of just deleting those entries and cleaning up?
Back to the top
 
Posted
Rating:
#98525
Avatar

Hmm. I suspect the importer has decided it had to import to the same-named catalogue, but if it's a tree catalogue you're only allowed one root node. It probably wasn't smart enough and added a second. I will take a closer look soon, and merge the root nodes for you.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98526
Avatar

I fixed that. Unfortunately though, all the entries were empty. This is because the system has no way to match up the fields between two sites, there are no shared identifiers. So I've had to delete all the empty entries to at least avoid your site being littered by them.
I would suggest doing  CSV export on the old site and then importing it into the new site. This works on the assumption the field titles are the same. I do see the old site is no longer up though, so that may not be feasible.

We will provide an error message for this situation in the future, as it's not a case we can really support.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98527

Honoured member

Thank you.  That's good and fine.  I can enter the recipes again as far as that goes.  Just having them not littering up the site is really what I wanted anyway.  I have some other stuff that is cluttering up the place and would like to get rid of that didn't post after the import, so may I ask how that is acomplished?  Would I find those in the site's database?
Back to the top
 
Posted
Rating:
#98529
Avatar

I actually did this in OcCLE, so there's no simple instruction for that. I just interfaced directly with ocPortal's API. I can give you the code…

Code

:require_code('catalogues2'); actual_delete_catalogue_entry(12345);

Where 12345 is a catalogue entry ID.

In v10 we'll have an easier way to do mass actions.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98565

Honoured member

Chris Graham said

I actually did this in OcCLE, so there's no simple instruction for that. I just interfaced directly with ocPortal's API. I can give you the code…

Code

:require_code('catalogues2'); actual_delete_catalogue_entry(12345);

Where 12345 is a catalogue entry ID.

In v10 we'll have an easier way to do mass actions.


Does the section "'catalogues2'" refered to the specific catalogue? I.E: Recipes, provided that was the second catalogue created or is a specific to the command operator?  Could I also use this command to delete a duplicate forum using "forum" instead of catalogue?

Also "Where 12345 is a catalogue entry ID" is the entry id always a number and if so how do you determine that number.

There was a bunch of stuff left over from the import and I'd like to get rid of it.  I've done a total backup of my site in case I get crazy and screw it up.
Back to the top
 
Posted
Rating:
#98566
Avatar

No, catalogues2 is the code file. Each kind of thing to be deleted will be in a different code file, and have a different API function to delete it, and possibly a different kind of ID, without necessarily a completely consistent pattern for those. This isn't a task I'd expect a non-programmer to be able to do, I only went about it this way because I know the API and there isn't currently a user-friendly mass-delete feature.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: