Imageverification not displayed

Post any questions you may have here

Imageverification not displayed

Postby Fellyboy on Thu Jul 05, 2007 11:02 pm

Hello all

A really great component - gratulations B) But unfortunately I've a little problem with it...

With my local installation (XAMP) - everything is ok. But if I upload the joomla files on my webspace, the image verification is not displayed on the form site. With Firefox V 2.0.0.4, nothing is shown at the place of the verification "field". In the IE 7.0, the white square with the red X is shown.

What's wrong?!

If you want to have a look, please visit my page.

Thanks for all help.

Regards
Markus<br><br>Post edited by: Fellyboy, at: 2007/07/05 19:04
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby GreyHead on Thu Jul 05, 2007 11:07 pm

Hi Fellyboy,

Is the GD extension for PHP installed? Check PHP.info for the install details.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Imageverification not displayed

Postby Fellyboy on Thu Jul 05, 2007 11:42 pm

Thanks for your answer, bob!

As I can see in the info.php or in the Joomla Backend: yes.

I just attached a printscreen of the info.php file.

Greetings [file name=GD.zip size=15459]http://www.chronoengine.com/components/com_fireboard/uploaded/files/GD.zip[/file]<br><br>Post edited by: Fellyboy, at: 2007/07/05 19:43
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby admin on Fri Jul 06, 2007 12:27 am

Hi,

I see the image has errors, this may be unsupported function is used or some problem under this line :

Code: Select all
header("Content-type: image/png"«»);


in file : chrono_verification.php

Please try to test and see which line is the problem, because there is no problems at any servers I worked at at all.

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:Imageverification not displayed

Postby Fellyboy on Fri Jul 06, 2007 2:58 am

Hello

If I type
Code: Select all
http://www.nuetzi-schreinerei.ch/joomla/administrator/components/com_chronocontact/chrono_verification.php
in the adressfield of the browser, the following text appears: Die Grafik "http://www.nuetzi-schreinerei.ch/joomla/administrator/components/com_chronocontact/chrono_verification.php" kann nicht angezeigt werden, weil sie Fehler enthält.

Means: the image {imageverification} could not be displayed because the image contains bugs.

On localhost - the image verification is shown correctly.

The line in file chrono_verification.php is exactely the same as you posted, Max.

Thanks!
Markus
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby admin on Fri Jul 06, 2007 3:30 am

Hi Markus,

What you say is just exactly what I said, so I got a result from this error you see, which is that after this line of code I posted there must be some trouble in the code, I guess one of the functions used isn't defined at your live host and so it makes this error!!

So you can use PHP to check if all functions used are at the PHP version you have on the life server.

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:Imageverification not displayed

Postby Fellyboy on Fri Jul 06, 2007 3:26 pm

Hello all

Ah sorry - i didn't understand that - I do appologize ;)

Ok with which PHP-Code I can check if all the functions needed for ChronoForms are supported on my life-system?!

Or have you a list wiht all needed functions?! So that I can check in the info.php if they are activated.

Is that what I have to do?! Sorry - I'm a Newcomer B)

Thanks for your reply!
Markus
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby admin on Fri Jul 06, 2007 4:06 pm

see here how to check if function exists :

http://www.php.net/function_exists
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:Imageverification not displayed

Postby Fellyboy on Fri Jul 06, 2007 6:01 pm

Ah ok, thanks.

I just changed the CHMOD rights for the components folders on the webserver (now 777). If I want open the chrono_verification.php file on the webserver, the following "message" appears:
Code: Select all
<b>Warning</b>:  imagettfbbox(): Could not find/open font in <b>/home/www/web106/html/joomla/administrator/components/com_chronocontact/chrono_verification.php</b> on line <b>21</b><br />


On line 21 I can find: $image_size = imagettfbbox(20, 0, $font, 'X');

Do I have to check this imagettfbbox-function with the script? So I have to create a file named for example function.php with the following content
Code: Select all
<?php
if (function_exists('imagettfbbox')) {
    echo "function ok.<br />\n";
} else {
    echo "function not ok.<br />\n";
}
?>


I tested it with the above script - function imagettfbbox is enabled

Thanks!<br><br>Post edited by: Fellyboy, at: 2007/07/06 14:28
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby admin on Fri Jul 06, 2007 7:20 pm

Hi,

No, it cant find teh font file or open it, you should have in the dir with this chrono_verification.php a file called default.ttf, can you find it ? can you extract it from the package and upload ?

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:Imageverification not displayed

Postby Fellyboy on Fri Jul 06, 2007 7:37 pm

Hello

The default.ttf-file is already in the folder.
I atteched a printscreen on which you can see all the files in the chronoform-folder.
The CHMOD rights from webroot to the dir with the chrono_verification.php are all 777.

[file name=chronodir.zip size=41538]http://www.chronoengine.com/components/com_fireboard/uploaded/files/chronodir.zip[/file]
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby admin on Fri Jul 06, 2007 7:43 pm

Hi,

Then try to overwrite it with a fresh one, and assure that you have $font = "default.ttf"; in the chrono_verification.php

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:Imageverification not displayed

Postby Fellyboy on Fri Jul 06, 2007 7:52 pm

Hi,

already done. I overwrote it. The "default.ttf" is in the chrono_verification.php (on line 35).

I use the newest version of chrono form. Downloaded from this page.

Can I change something in the backend?

Regards
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby Fellyboy on Fri Jul 06, 2007 8:50 pm

I just entered the absolute path to the font-file (in different versions)- without any success :(

What about TTF support?! As I can see in the info.php, gd support is enabled.

What about the CHMOD rights? Are there special configurations necessairy?

GD on the server:
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

GD localhost:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Greetings
Markus<br><br>Post edited by: Fellyboy, at: 2007/07/06 19:22
Fellyboy
Junior Boarder
 
Posts: 27
Joined: Thu Jul 05, 2007 3:54 pm

Re:Imageverification not displayed

Postby admin on Fri Jul 06, 2007 11:53 pm

Hi Markus,

The best way now to test is that you test only the chrono_verification.php with the font file, try getting other font files and try putting the script and the font file in other directories in your server, it should work well anywhere as long as a right path is defined for the font file, I have no idea why this problem occurs for you only but I am sure that with some tests and search you can know where the problem is!

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Next

Return to Questions & Answers

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests