Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter slaterino

    (@slaterino)

    Of course! It was so simple. I needed to add an ‘if not empty’ statement before running the loop. That has now been done and the problem is solved. Thanks so much for your help!

    Thread Starter slaterino

    (@slaterino)

    Hey, yeah I tried disabling all plugins but it made little difference. It could be worth changing the theme temporarily, though I think I’ll have to wait until late at night to do that, as the site is workable at the moment and people are still visiting it.

    It does seem that you were right though, and the problem is resources. I looked at Google Analytics and the traffic for the site at the moment is astronomical. However, almost all of the traffic is spam from Facebook! For example, yesterday there were close to 2,500 pages accessed on the page that look like this one. They are all directing to pages that don’t exist and have never existed. It’s very strange!

    /886602052816?fb_action_ids=1491176771184310&fb_action_types=og.likes&fb_source=other_multiline&action_object_map=[831103497008868]&action_type_map=[“og.likes”]&action_ref_map=[]

    I think I’ll have to get in touch with Facebook to see what is happening!

    Thread Starter slaterino

    (@slaterino)

    Hi, thanks for the reply.

    The inclination would be to think that this is a problem with resources. However, the site does not get much traffic. It gets less traffic than other sites on the same shared server, so there is no reason to think that this is the problem.

    Is there any way I can find out who is trying to access the database? Or where these requests are coming from?

    Cheers,
    Russ

    Thread Starter slaterino

    (@slaterino)

    Hey Lewis,
    At the moment I’m trying to see if there’s a chance this could be a server-related problem. To know more I would need to know whether the plugin has any callbacks to the server possibly over port 80? Something like “curl yourwebsite.com”.

    If you could let me know I might be able to find out whether it’s a server-related issue.

    Cheers,
    Russ

    Thread Starter slaterino

    (@slaterino)

    Hey Lewis,
    Thanks for the update. I’ve followed your instructions but unfortunately it’s still not working. It’d be great to get it all sorted ASAP as I need to hand this over to my client soon and this would be a great feature to have.

    In regards to the development installations instructions, I’ve gone through that process again to install the development version.

    I’ve also tried adding a value into each of the input fields which previously contained nothing. These were:
    Include/Exclude
    Include/Exclude from Cache
    Custom CSS
    Custom Bullet Image File
    Custom Footer (Text Field)
    Footer Cell Border

    I also noticed that after uninstalling and reinstalling the Development Version the Orientation field was unselected, so that neither Portrait or Orientation were selected.

    Unfortunately I’m still getting a blank page when I try to create a PDF, as per https://thgcreative.co.uk/yeti/?wall=sxsw-test.

    Please let me know once you have some solutions.

    Thanks,
    Russ

    Thread Starter slaterino

    (@slaterino)

    Hi Lewis,
    Thanks so much for your help last week. I have only had the chance to work on the site the last couple of days but have unfortunately been unable to find an answer.

    I continued with the official release and tried different orientations and image scale ratios but the results were the same. Then I tried the development release and again tried different orientations and image scale ratios. Unfortunately this seemed to make it worse and now no PDF is generated at all. See example: https://thgcreative.co.uk/yeti/?wall=sxsw-test.

    Do you know why this is?

    Sorry for being a pain with these problems. It’s just that my local test version of WP Post to PDF works so well that I’m desperate to have it working on the main server too.

    Thanks,
    Russ

    Thread Starter slaterino

    (@slaterino)

    Oh sorry, the code I was actually using for the image is:

    <img src="<?php echo $path; ?>" class="what-image" />

    Thread Starter slaterino

    (@slaterino)

    Dude, vtxyzzy, whoever you are, you’re a genius! I really should have thought of that! I think I’d probably given up, or at least my brain had. So many thanks for your help. I think you’ve changed my life!

    Thread Starter slaterino

    (@slaterino)

    I tried it. When I do it pretty much brings up every record in the database!

    Thread Starter slaterino

    (@slaterino)

    Hey vtxyzzy,
    Thanks for this. It cures one problem but starts another.

    At the moment the events where the ‘end_date’ value is less than today’s date but the ‘event_enddate’ is greater than today’s date are not showing up. I’m presuming this is because the INNER JOIN is causing this to happen. In the original query I was able to add an OR statement in the WHERE clause but I’m less good at working out how to cure this situation with the JOINS.

    Any ideas?

    Thread Starter slaterino

    (@slaterino)

    How would I do that? All the examples I’ve looked at have specified the meta key in the WHERE clause. How would I specify event_date in the LEFT JOIN? I haven’t seen anyone do anything like that in the examples I’ve looked at.

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