• Resolved davisnz

    (@davisnz)


    Hello, I’m loving this plugin but I’m getting an error everytime I try to set up my rss to post.. This is what I’m getting:

    Warning: SimpleXMLElement::xpath() [simplexmlelement.xpath]: Invalid predicate in /PATH/plugins/wp-pipes/includes/form/form.php on line 1473

    Warning: SimpleXMLElement::xpath() [simplexmlelement.xpath]: xmlXPathEval: evaluation failed in /PATH/plugins/wp-pipes/includes/form/form.php on line 1473

    This is what I’m doing:

    [so] title => [di] title
    [so] link => [di] excerpt
    [so] date => [di] date

    Processor: slug

    [so] tittle => pi[0] text ; po[0] slug => [di] slug

    Full Text

    [so] link => po [1] url ; po [1] Full Text => [di] content

    Get Images

    [po] 1 full_html => pi [2] html ; po [2] images undefined => [di] images

    Any help please?

    https://wordpress.org/plugins/wp-pipes/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Coven Eye

    (@coven-eye)

    Hi davisnz,

    Thanks for using our plugin.
    Please use po [1] Full Text for your Get Images processor. If the problem still occurs, please post again here with the link to your RSS source, so that we can check it.

    Best regards.

    Thread Starter davisnz

    (@davisnz)

    Thank you so much, I’m going to try it now, I’ve been trying to understand how to use the plugin the whole night and it’s a little bit confusing, this is what i’m trying to do:

    Show a thumbnail picture from the post, in the post include 2 or 3 pictures and half or the full text. But at the end needs to have the source and the link to go to the original post. That’s all i’m looking for, can someone help me please? Thanks.

    Coven Eye

    (@coven-eye)

    Glad that I could help :”)

    You can watch the showcase video tutorial for WP Pipes in here to get a clearer image of how to make Pipes work for your benefit.

    About your specific problem, I nominate the Cut Introtex Processor as a solution. Please click on the link below to view the field mapping:
    Fields mapping for introtext with custom length.

    The Words option for Cut introtext processor would decide the minimum number of words to be cut from po[2]html, the returned HTML string will be stored in po[3] introtext. You can use it for [di] content to post with a shorter content. Remember to set the value as YES for the Finish Sentence option. You should also check if the Remove option in Get Images processor is set to Yes, to ensure that there would be no duplicated images in your auto posting.

    The “link to original source” question has been answered in this thread: Giving credit to source?. Please go there and read. If you still have question, please don’t hesitate to ask here again.

    Best regards.

    Thread Starter davisnz

    (@davisnz)

    Alright, thank you so much! That solved my main problem, now the only one that i’m getting is that my images are not showing up, not even as a featured image, I did all this https://docs.google.com/file/d/0B829n4QBUwXdQjhNMjNsWEtBUnc/edit but doesn’t work, can you help me out please?

    Coven Eye

    (@coven-eye)

    Hi davisnz,

    Can you please export your pipe and upload it here for me to check? You can do it by clicking on the small arrow next to the <<Save>> button and choose “Export yo .pipe file“.

    There are cases that require us to make heavy configuration with Parser Code and the likes before we could make Pipes fetch the content accurately, and it’s kind of hard to offer a solution when I have to go blind on the data construction on your source.
    Or you can show me the link to your RSS Feed.

    With best regards.

    Thread Starter davisnz

    (@davisnz)

    Thanks Coven, here is the link for the Pipe file: https://www.dropbox.com/s/gfn1rb2tacrxi7v/Davisnz.pipe

    Coven Eye

    (@coven-eye)

    Hi davisnz,

    I’m really sorry but while investigating you source, we’ve found out that their images was not displayed with image tags, but with a flash gallery, so it’s pretty hard to rip images from them with just standard processor in the free core of WP Pipes. Moreover it’s not just flash gallery that they used, sometimes the “images” are actually screenshot from a youtube clip.

    Probably we would need the DOM processor for such a difficult case. If you really need it, please check out the Shop section on our website.

    With best regards.

    Thread Starter davisnz

    (@davisnz)

    Okay thats cool, I only need at least a featured image, I don’t really worry about the content, is that possible? I was doing crazy stuff one time and I got it, but I wasn’t able to use it because an error, can I put a featured image? That will solve everything. Thanks!.

    Coven Eye

    (@coven-eye)

    Well, I think it’s possible with some post if you use the Parser Code. But since the structure change from post to post, you would have to keep a monitor on you pipes and re-code it for posts with a different structure, and manually run the pipe again.

    If you don’t mind doing it, I could cook up the Parser Code that would work for posts with flash gallery for you. I haven’t look at posts with Youtube thumbnail, so for now I really can’t promise.

    Best regards.

    Thread Starter davisnz

    (@davisnz)

    Sure, thank you! I would appreciate it!

    Coven Eye

    (@coven-eye)

    Oh dear davisnz, I think I have good news for you.

    I’ve tried this code on our Parser Code simulator and looks like it works for both youtube clips and gallery flash:
    ginner|0|div|cover-wrap|0|1|

    You can use it with another Get Fulltext and feed the result to a Get Images processor. Please inform me if it works for your Pipes system. I would be waiting for news from you.

    With best regards.

    Thread Starter davisnz

    (@davisnz)

    Thanks Coven! I’m going to try it out! Btw I’m sorry for my ignorance, but how can do I set up: ginner|0|div|cover-wrap|0|1| ?

    Coven Eye

    (@coven-eye)

    Dear davisnz,

    I mean you should:
    – Call a Get Fulltext processor only to get your images. Please use the code I’ve given you for the Parser Code box of this processor. It would extract only featured images from the post in your RSS Source.
    – Then use the fulltext field produced by the before-mentioned Get Fulltext processor as input for your Get Images processor.

    Please view the screenshot in the link below fore more detail. I’ve marked the place for your Parser Code and the flow of data from field to field in there:
    Retrieving Images from yahoo sport

    If you still have any question, please feel free to ask :”)

    With best regards.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘SimpleXMLElement::xpath()’ is closed to new replies.