WordPress WXR file import partial fail: how to debug? - wordpress

I am converting an old CMS to WordPress. Given that I have control over the source database, I have written a conversion script that generates a WXR formatted XML file. The import is partially successful, including comments, media, categories, etc. But several posts fail to import with no reason given. PHP error log shows no errors. How can I trace what goes wrong?

Issue was bad date/time formatting.

Related

Errors while importing users from old site

I have an old drupal site with 100 users. However when I tried importing them all in new drupal instance I got errors like below for most of user entries.
Notice: Object of class stdClass could not be converted to
int in drupal_write_record() (line 7159 of sitepath\includes\common.inc
I'm using the Drupal data export import module.
Is this serious, as I can see users imported but not sure if this error give me problem later.
Or is there any better way of importing user from old Drupal site.
Note: both sites are running on Drupal 7.
It looks like the Data Export Import module is not very maintained. Last commit 9 months ago.
I see two options:
Create View with a CSV on the old site, then use User Import to import the CSV.
If you have coding capabilities around (and experience with Drupal coding) and you need more customization you should go for Migrate.

File Viewer for all extention for asp.net

I have archive website application, this software for archive all document a company. Admin this software upload any extension in this software like AutoCAD, images(png,gif,...), pdf file, etc, I want when user select a file show this file in viewer in browser, But I do not know what tool to use, please help me, thanks all.
Create an image from every file uploaded. Show that to end users.
There is no tool or component that will allow you to show all propriety file formats that exists today.
For every pariticular file format that you wont to support you must have code that understands that format, AFAIK component suite for ASP.NET that have biggest number of supported file formats is Aspose.NET :
http://www.aspose.com/.net/total-component.aspx

Asp.Net export to Excel error : Problems During Load, Missing .css files

From my asp.net website, I export data into excel using Microsoft ReportViewer. When I open the excel I get the following error
When I export few rows of data, it works fine. But when I export some what huge data, it throws this error. Can some one provide some help?
The data you are exporting is referencing css files on the webserver.
once you are downloading the file, you are downloading those references.
When you open the file, it's trying to open the css file's locally, but they do not exist locally.
I would either download the css files separately, and place them in the local location they should exist in, or prevent your export from referencing the files in whichever line has the references. (probably near the top)

User imports with cron job

I have a drupal website where i wonna import user settings with a CSV ( Comma separate file ) file. I can do that with the user imports module. But this is manually. You need to choose a csv file and can then change some settings,... to import that file. That is no problem.
Now i wonna do that automaticly ( cron ? ). I have read that it could be done with the same user imports module. But i can't get it working. Somebody that can help me starting, to do the following.
So that he gonna see to an ftp location if there is a new csv file.
The he gonna do the import.
He must do changes for users that already exists an add new users if they doesn't exists. And for users that where deleted from the file , the user should set to inactive.
And after this, there should be a report with al the changes that are made
I would suggest using the feeds module. You can easily set it up to import on a schedule and can specify a local folder to look for new files. You can also set it up to access a remote url for the file, but only through http not ftp. We do a similar import and have a bash script that transfers the file to a local folder and then use feeds to import the resulting file.
Thanks for the advice. But i am rewriting the module into a new module. With everything i need. :)

Drupal's JS and CSS optimization error

I started getting errors after I turned on Drupal's performance improvements which pack all the CSS and JS files into single files. The error looks like this:
The selected file /tmp/fileO4fjBF
could not be uploaded, because the
destination
js/js_8a69e612be02242c2866a4a19223bd12.js
is not properly configured.
I'm not sure how I should configure my server for this to work correctly. There is nothing in the documentation about this.
Check you ' Site Configuration > Files' settings or the report. If it is a file permission issue (or maybe a missing folder) it should be apparent from one of those two places.
Often the report or files-settings also supply information on how to remedy the problem.

Resources