You are here:  » searchExternal, pricesExternal stopped working in Wordpress


searchExternal, pricesExternal stopped working in Wordpress

Submitted by npaitken on Thu, 2010-12-09 16:52 in

Hi Dave,

Had a strange and really frustrating thing happen today on one of my sites. While creating some posts, searchExternal amd pricesExternal stopped working - one minute it was working now it's not! When I say not working, any post that I try to embed PT php code into won't save properly.

Existing posts seem to be ok but when I try to add PT PHP code and save it the Wordpress post, it doesn't save as normal. Instead, when I try to save, it goes to a blank page

I've tested various things already to try and pinpoint the problem. These are:
- save & execute some basic php "hello world" in a post [OK]
- save & execute other embeddable code in a post [OK]

Seems to be just PT code it won't save!

Any ideas on how to start troubleshooting this?

Many thanks,
Neil

Submitted by support on Thu, 2010-12-09 17:13

Hi Neil,

What i'd do first is make sure that full PHP error reporting is enabled at the point where you are calling the external scripts. To do this, immediately after the opening PHP tag where you have included your code, add the following lines:

  error_reporting(E_ALL);
  ini_set("error_reporting","on");

...that might shed more light on the situation...

Cheers,
David.
--
PriceTapestry.com

Submitted by npaitken on Thu, 2010-12-09 18:55

Hi David,

Thanks for that. It didn't work! It won't save the post properly, so I can't preview the page (hence no error reporting).

Some further information for you. It seems to jam-up when I use code for

pricesExternal

BUT it doesn't jam-up when I use

searchExternal; or
searchExternal_reviewtop; or
searchExternal_single; or
searchExternal_bg

these are a few customised versions I made and use from time to time.

When the problem first started I was creating a post using pricesExternal and wonder if something has been corrupted somewhere.

ANy further thoughts?

Thanks,
Neil

Submitted by npaitken on Thu, 2010-12-09 19:48

Dave,

Solved it! My mistake, you can delete this thread

It's to do with the way I have PT setup to do certain types of posts.

Where I use pricesExternal I need to preceed it somewhere in the post with searchExternal_reviewtop. Back in the dim and distant past, when I first started to do this I was having probelms with some function being called twice! You fixed to for me so that the function is only called once in searchExternal_reviewtop. Hence, if you use priceExternal on it's own it doesn't work.

That's exactly what I did wrong today! Forgot to use them both together

Sorry for wasting your time Dave

Best,
NEil