nxc / nxc_captcha

eZ Publish Captcha datatype
5 stars 12 forks source link

captcha image nog showing #5

Open schoninr opened 10 years ago

schoninr commented 10 years ago

Hello, I cloned nxc_captcha today and added it in an eZ Publish installation without any problems. When I added it as an attribute in an content object the captcha image is not showing in the frontend:

schermafbeelding 2014-03-03 om 13 37 33

The loaded template extension/nxc_captcha/design/standard/templates/content/datatype/collect/nxccaptcha.tpl looks fine. Any idea why the image is not showing?

Thanks! Ron Schöningh

SerheyDolgushev commented 10 years ago

Hi, Can you please check your PHP error log?

schoninr commented 10 years ago

HI Serhey,

Thanks for you quick response!

In eZ Debug I found the following message:

Cannot retrieve attribute of a boolean Error: eZTemplate @ extension/nxc_captcha/design/standard/templates/content/datatype/collect/nxccaptcha.tpl:13[0] Mar 03 2014 12:56:36

Ron

Op 3 mrt. 2014, om 13:47 heeft Serhey notifications@github.com het volgende geschreven:

Hi, Can you please check your PHP error log?

— Reply to this email directly or view it on GitHub.

SerheyDolgushev commented 10 years ago

Hi Ron, Sorry, can you please check PHP error logs, instead of ezp error logs?

schoninr commented 10 years ago

Hi Serhey,

Sorry I cannot find any related php errors…

Op 3 mrt. 2014, om 14:01 heeft Serhey notifications@github.com het volgende geschreven:

Hi Ron, Sorry, can you please check PHP error logs, instead of ezp error logs?

— Reply to this email directly or view it on GitHub.

SerheyDolgushev commented 10 years ago

Can you please check what src has the captcha image? Afterward, can you, please enable PHP errors/warning output and open captcha image directly in the browser?

schoninr commented 10 years ago

The image html: <img id="nxc-captcha-667774" alt="Secure code" title="Secure code" src="/nxc_captcha/get/1431/nxc_captcha_collection_attribute_667774/1”>

Sorry, but again no php errors in my php error log

Ron

Op 3 mrt. 2014, om 14:57 heeft Serhey notifications@github.com het volgende geschreven:

Can you please check what src has the captcha image? Afterward, can you, please enable PHP errors/warning output and open captcha image directly in the browser?

— Reply to this email directly or view it on GitHub.

SerheyDolgushev commented 10 years ago

can you please enable PHP warning and errors output and open /nxc_captcha/get/1431/nxc_captcha_collection_attribute_667774/1 directly in your browser?

schoninr commented 10 years ago

Yes I that’s what I did but it did not trigger any php errors. Can it be a (eZPublish) permission issue? PHP error settings are enabled: error_reporting = E_ALL and my error log: error_log = /usr/local/var/log/apache2/php-errors.log

Op 3 mrt. 2014, om 16:50 heeft Serhey notifications@github.com het volgende geschreven:

can you please enable PHP warning and errors output and open /nxc_captcha/get/1431/nxc_captcha_collection_attribute_667774/1 directly in your browser?

— Reply to this email directly or view it on GitHub.

schoninr commented 10 years ago

Hi,

We solved the bug I reported yesterday and added a pull request on github: https://github.com/nxc/nxc_captcha/pull/6 Thanks for your great extension, hopefully others will benefit from it too!

Greets, Ron

Op 3 mrt. 2014, om 16:50 heeft Serhey notifications@github.com het volgende geschreven:

can you please enable PHP warning and errors output and open /nxc_captcha/get/1431/nxc_captcha_collection_attribute_667774/1 directly in your browser?

— Reply to this email directly or view it on GitHub.


bezoek onze website: http://www.myxt.nl

volg ons op Twitter

volg ons op Facebook

Myxt Web Solutions De Gruyterfabriek L-7233

Veemarktkade 8 5222 AE 's-Hertogenbosch

tel. 073 850 51 85 Skype: myxt_ws