Problem from start
-
Using:-
PP: 2.31
Piwigo: 2.74
PHP: 5.3.28
MySQL: 5.5.47
Piwigo Install: http://www.yarnwhispering.co.uk/pix/
WP test page: http://www.yarnwhispering.co.uk/test/Content of test page:-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat, elit dapibus porta rhoncus, ligula purus auctor quam, sed egestas justo erat sit amet ligula. [PiwigoPress id=194 url='http://piwigo.org/demo'] [PiwigoPress id=1 url='http://www.yarnwhispering.co.uk/pix']
As you can see only the demo image works. Also whichever URL I use the PP picker doesn’t populate. See screen dumps at:-
-
@norbusan I have spent countless hours trying to get this working. I do not understand why you aren’t helping.
[Moderator note: Please, no bumping.]
-
This reply was modified 8 years, 7 months ago by
Steven Stern (sterndata).
So @sterndata what exactly am I to do? There has been a substantial negative intervention by moderation on this thread. However none that would suggest a way of resolving my problem.
Tell me what steps to take next to resolve this please.
@norbusan I have paid a developer to examine the code and we have established what the problem is. PiwigoPress is requesting the image data as a URL. EG:-
http://yarnwhispering.co.uk/pix/ws.php?method=pwg.images.getInfo&format=php&image_id=40
Although this works fine if you click on it in a browser loop back requests are blocked so when piwigpress.php makes the above request an error is returned:-
object(WP_Error)#3167 (2) { ["errors"]=> array(1) { ["http_request_failed"]=> array(1) { [0]=> string(56) "cURL error 56: Failure when receiving data from the peer" } } ["error_data"]=> array(0) { } } array(6) { ["headers"]=> object(Requests_Utility_CaseInsensitiveDictionary)#3173 (1) { ["data":protected]=> array(4) { ["date"]=> string(29) "Mon, 09 Jan 2017 15:42:21 GMT" ["server"]=> string(20) "Apache/2.4.23 (Unix)" ["content-length"]=> string(3) "290" ["content-type"]=> string(29) "text/html; charset=iso-8859-1" } } ["body"]=> string(290) "
Line 119 tests for an error:-
if (!is_wp_error($response)) {
… and does nothing so no image.
Can you correct this? It would be great if you could. If not, then at the least your documentation needs to advise that PiwigoPress won’t work with Piwigo sites on the same server unless loopback protection is disabled.
@norbusan there is more about this at http://piwigo.org/forum/viewtopic.php?id=27621 could you please make sure the description of your plugin outlines its potential shortcoming when using Piwigo and WordPress on the same server. It would be a shame if future users ended up expending their time in working out why it wasn’t happening.
-
This reply was modified 8 years, 7 months ago by
- The topic ‘Problem from start’ is closed to new replies.