Jump to content

Get This Error When Re Gennerating Signatures


deactivated

Recommended Posts

It seems to be an issue with your Font area in the PilotData.class.php Check the coded in there around 1026 - 1071:

/* Font stuff */

	if(!function_exists('imagettftext'))
	{
		Config::Set('SIGNATURE_USE_CUSTOM_FONT', false);
	}

	# The line height of each item to fit nicely, dynamic

	if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false)
	{
		$stepsize = imagefontheight($font);
		$fontwidth = imagefontwidth($font);
	}
	else
	{
		// get the font width and step size
		$bb = imagettfbbox  ( $font_size, 0, $font, 'A');

		$stepsize = $bb[3] - $bb[5] + Config::Get('SIGNATURE_FONT_PADDING');
		$fontwidth = $bb[2] - $bb[0];
	}


	$currline = $yoffset;
	$total = count($output);
	for($i=0;$i<$total;$i++)
	{		
		if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false)
		{	
			imagestring($img, $font, $xoffset, $currline, $output[$i], $textcolor);	
		}
		else
		{
			// Use TTF
			$tmp = imagettftext($img, $font_size, 0, $xoffset, $currline, $textcolor, $font, $output[$i]);

			// Flag is placed at the end of of the first line, so have that bounding box there
			if($i==0)
			{
				$flag_bb = $tmp;
			}
		}

		$currline+=$stepsize;
	}

Also, check the information you are trying to have it show, maybe you have too much info that it is setup to show.

Link to comment
Share on other sites

phpVMS Virtual Airline Administration Software

Install Check

phpVMS Build Number: 934

Checking PHP version

[OK] PHP version is 5.3.5.x

ASP Tags

[OK] ASP-style tags are disabled

Checking connectivity...

[OK] Can contact outside servers

Checking for SimpleXML module...

[OK] SimpleXML module exists!

Checking file hashes for corrupt or mismatched files

[Checksum failed] /core/templates/schedule_bids.tpl did not match, possibly corrupt or out of date

[Checksum failed] /core/templates/login_form.tpl did not match, possibly corrupt or out of date

[Checksum failed] /core/templates/core_error.tpl did not match, possibly corrupt or out of date

-- Checked 183 files, found 3 errors

Link to comment
Share on other sites

Guest lorathon

What do you have this set to in local.config.php?

SIGNATURE_FONT_PATH

you you have the following file? This is the standard Font for signatures.

/lib/fonts/tahoma.ttf

Link to comment
Share on other sites

Guest lorathon

If it is not in your local check the app.config.php as stated by Jeff. But this should not be changed and the path should be as shown in my other question "/lib/fonts/tahoma.ttf". Ensure that this file is present on your site. This is the standard font file for the signatures.

The errors seem to be coming from the function attempting to get information regarding the $font. $font is filled using the SIGNATURE_FONT_PATH.

$font = Config::Get('SIGNATURE_FONT_PATH');

If the file is not there it will not fill $font with anything and then the following will fail.

// This is attempting to get the size of the font.  Your errors show these are failing so $font may not be filled with a good font file.
$stepsize = imagefontheight($font);
$fontwidth = imagefontwidth($font);

Warning: imagefontheight() expects parameter 1 to be long, string given in /home/canada/public_html/core/common/PilotData.class.php on line 1035

Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/canada/public_html/core/common/PilotData.class.php on line 1036

Link to comment
Share on other sites

  • Moderators

You can try clearing your cache in the Admin Center (Maintenance Options) then Regenerate the Signatures (same place) and see if they show up. If not, come back ad let us know.

I think Jeff's suggestion is good idea because you have bulky files.

By the way, this post was sent from my new iPad 2 :D

Link to comment
Share on other sites

phpVMS Virtual Airline Administration Software

Install Check

phpVMS Build Number: 934

Checking PHP version

[OK] PHP version is 5.3.5.x

ASP Tags

[OK] ASP-style tags are disabled

Checking connectivity...

[OK] Can contact outside servers

Checking for SimpleXML module...

[OK] SimpleXML module exists!

Checking file hashes for corrupt or mismatched files

[Checksum failed] /core/templates/schedule_bids.tpl did not match, possibly corrupt or out of date

[Checksum failed] /core/templates/login_form.tpl did not match, possibly corrupt or out of date

[Checksum failed] /core/templates/core_error.tpl did not match, possibly corrupt or out of date

-- Checked 183 files, found 3 errors

There

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...