ThemeForest

Posts by webmandesign

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

I don’t think this is resolved issue yet, but it haven’t happened since to me.

As tips for you guys: firstly, activate the theme the XML is meant for (and all the possible required plugins) and then try to import the XML file.

Tip for theme authors: I know this doesn’t really resolve the issue I’ve started this thread with, but I found a good practice to move all downloadable content (images for example) in XML file at its end. By default WP creates this (or smilar) XML structure: first are imported taxonomies, then downloadable media and then content (also with downloadable media somewhere). So what I do before I distribute the theme demo XML is just open the XML file and cut and paste all the attachments post types at the end of XML file (surely before closing tags </channel></rss>). This helps when there is a problem with importing images as all the text content is imported at the beginning of the file and all attachments are being downloaded just after this text content is imported. At least something ;)

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

Thanks for sharing. :)

Well, that’s why I opened this thread. I was frustrated that I couldn’t find a solution for this anywhere. Still don’t have it and my customer went on by creating his pages from scratch…

I wasn’t able to recreate the error since which makes is more misterious one!

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

Hi mailmilisku,

Thanks for the reply. This shouldn’t be a problem once the custom post has the same ID – basically same everything ;)

As for whether custom post is theme related I don’t agree with that. In my opinion it belongs to plugin, but if we (WordPress theme authors) want to sell… :| That’s for the whole new thread ;)

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

Post types can have the same display name, but different “ID” (the first param of the register_post_type() function) – maybe that’s the reason?

No, not the case. They are the same. That’s why it puzzles me. But anyway, it worked for me now and I’m sure the customer didn’t try to import demo content from my other theme as he only bought the one so I really don’t understand why there are those import errors…

My other thought would be could it be some server settings? I mean maybe the XML file (which is around 700KB) was not imported into WordPress in whole? But wouldn’t improter script throw off some error about invalid XML then?

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

Thank you for reply. I realized I’ve installed demo content from different theme of mine. But those themes use the same post types so it doesn’t matter? Well, anyway I tried now and was able to install demo content fine.

However, I’ve checked the screenshots my customer sent me and he has got the theme installed, active but he still get those errors. I can’t see why…

Also thank you for your answers! I didn’t know about 1) so thanks for the tip and I agree it is good behaviour.

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

Hi guys,

I have a “weird” issue here.

Recently I had couple of support calls for demo content of my themes. In both instances the WordPress importer returns many of similar errors:
  • Failed to import post tag
  • Failed to import (yes, this one is plain just like that)
  • Failed to import “XYZ”: Invalid post type

Even I was able to replicate the issue when installing the demo content (and also with other ThemeForest themes I’ve bought) on localhost on my computer. It was working perfectly fine before. The only change I can think of was that I updated my theme demo websites (from where the demo images are being downloaded) to current WordPress 3.5, but I don’t think it should be a problem.

Though, when I try to install the demo content on the same server where my theme demo websites are installed, everything works fine.

This rises several questions for me and I was wondering if anybody can shed a light on them:
  1. Why there are these “invalid post type” errors during the import process? As far as I know, WordPress takes the post types directly from XML file regardless what theme is installed / what post types you are actually using. The not-existing post types should be just saved in database, so they should be imported. Why does WordPress have issues with this? (And BTW, there is no error in actual XML file – I’ve run through it all and as I’ve mentioned, the erroneous imports occurs intermittently while importing the same file.)
  2. During import process WordPress downloads only images and attachments from external server. All other data are being taken from XML file, right?
  3. As of previous question: could WordPress import fail due to bandwidth limitation to my theme demo website?
  4. Can somebody explain how the WordPress import works? How it creates WP data, how it imports images (if it import also all created formats or just the main image that is formated during the import process)?

Thank you in advance for any suggestions/ideas!

Oliver

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

Hi guys,

The above filter gets approved finally.

Although I thought that was the last thing before releasing the theme for selling as reviewer already moved to code stage (http://notes.envato.com/general/submission-tip-understand-the-themeforest-reviewing-process/), that’s not the case with me. He’s back in rejecting design and even theme demo website (?).

This is funky long run as I’m back at the beginning…. However I don’t know if I have energy to do something about it after several soft rejections and long communication via Envato support. ;) I’m preparing for the last strike though :)

Thanks for all your replies guys anyway.

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says


My item also was soft rejected for the same reason, try this:
function shortcode_empty_paragraph_fix($content){   
    $array = array (
        '<p>[' => '[', 
        ']</p>' => ']', 
        ']<br />' => ']'
    );

    $content = strtr($content, $array);
    return $content;
}

add_filter('the_content', 'shortcode_empty_paragraph_fix');
This is what I use ;)

Hi WPExplorer :) I have the same function in my code and no “remove_filter” but I still get rejected with the same answer (that I’m “removing or modifying the filter wpautop”). I had to submit an Envato support ticket for this (which is very slow in answer) as I even get a warning from reviewer in my last soft rejection that I will be suspended when I resubmit the theme with no change (but I actually changed one line in the code…) again.

So still don’t know where exactly I remove or modify wpautop filter, but as I said, I’m using the same function as you do and that’s the only filter applied on “the_content”, so I blame this for soft rejection…

Will keep you guys updated as soon as I get some more info from Envato.

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

For now, the only solution is having the shortcodes without line breaks, everything inline. This of course causes terrible readability.

Well, this is the point. Do we really need to sacrifice user experience and thus put everything regarding shortcodes into one line and format content inside with HTML and not visual editor? What for is the visual editor then?

As I said, I don’t use the “remove_filter” hack and never tought of using it on content. I use the solution rvision_ and WPExplorer had mentioned (but anyway, if I didn’t have to I wouldn’t be using shortcodes entirely :) ).

14 posts
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Europe
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
webmandesign says

You can use a jquery plugin to get around it ;) Also yes I still stand by the title, it’s total bullshit, there are massive discrepancies in what some people get away with. I just downloaded a recently published theme, with the filtering and fonts included in the theme – it’s a crock, all depends on who you get I think.

Well, I don’t want to use jQuery to do the job like this to be honest. When JS is off, everything will look horrible again.

I can confirm the fonts in theme too!

by
by
by
by
by