HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


ocp 7.1.4 setup wizard step 10 - stack trace

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#73711 (In Topic #15404)
Avatar

Honoured member

PHP WARNING [2] imagettfbbox() [<a href='http://www.php.net/manual/en/function.imagettfbbox.php'>function.imagettfbbox.php</a>]: Problem loading glyph in D:\UniServer\www\sources\themewizard.php on line 260 (version: 7.1.4, PHP version: 5.3.6, URL: /adminzone/index.php?page=admin_setupwizard&type=step10)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'D:\UniServer\www\sources\failure.php'
Line'674'
Function'get_html_trace'
Args 

File'D:\UniServer\www\sources\global2.php'
Line'965'
Function'_fatal_exit'
Args'PHP WARNING [2] imagettfbbox() [<a href=\'http://www.php.net/manual/en/function.imagettfbbox.php\'>function.imagettfbbox.php</a>]: Problem loading glyph in D:\UniServer\www\sources\themewizard.php on line 260'


File'D:\UniServer\www\sources\failure.php'
Line'214'
Function'fatal_exit'
Args'PHP WARNING [2] imagettfbbox() [<a href=\'http://www.php.net/manual/en/function.imagettfbbox.php\'>function.imagettfbbox.php</a>]: Problem loading glyph in D:\UniServer\www\sources\themewizard.php on line 260'


File'D:\UniServer\www\sources\global2.php'
Line'839'
Function'_ocportal_error_handler'
Args'warning'

2

'imagettfbbox() [<a href=\'http://www.php.net/manual/en/function.imagettfbbox.php\'>function.imagettfbbox.php</a>]: Problem loading glyph'

'D:\UniServer\www\sources\themewizard.php'

260


Function'ocportal_error_handler'
Args

File'D:\UniServer\www\sources\themewizard.php'
Line'260'
Function'imagettfbbox'
Args26

0

'D:\UniServer\www/data/fonts/Vera.ttf'

'(unnamed)'


File'D:\UniServer\www\adminzone\pages\modules\admin_setupwizard.php'
Line'706'
Function'generate_logo'
Args'(unnamed)'

'Spreading the word of default'

false

'_unnamed_'

'logo-template'


File'D:\UniServer\www\adminzone\pages\modules\admin_setupwizard.php'
Line'77'
Function'step10'
Class'Module_admin_setupwizard'
ObjectModule_admin_setupwizard::__set_state(array( ))
Type'->'
Args 

File'D:\UniServer\www\sources\zones.php'
Line'386'
Function'run'
Class'Module_admin_setupwizard'
ObjectModule_admin_setupwizard::__set_state(array( ))
Type'->'
Args 

File'D:\UniServer\www\sources\site.php'
Line'967'
Function'load_module_page'
Args'adminzone/pages/modules/admin_setupwizard.php'

'admin_setupwizard'


File'D:\UniServer\www\sources\site.php'
Line'750'
Function'request_page'
Args'admin_setupwizard'

true


File'D:\UniServer\www\adminzone\index.php'
Line'51'
Function'do_site'
Args 
Back to the top
 
Posted
Rating:
#73724
Avatar

Seems your PHP installation has GD, but doesn't have FreeType compiled in, so can't load TTF fonts. We try and detect this but it turns out we need to probe deeper to do that, so fix attached.

Attachment
sources/themewizard.php
» Download: themewizard.php (57 Kb, 106 downloads so far)
Attachment
sources/misc_scripts.php
» Download: misc_scripts.php (39 Kb, 113 downloads so far)


When this is applied it will see it can't use TTF fonts so it will use simple fonts.
This is just for the logo wizard really (built into setup wizard), so not a big deal.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#73750
Avatar

Honoured member

trying it now.
Back to the top
 
Posted
Rating:
#73751
Avatar

Honoured member

It still stack tracing on me.
Back to the top
 
Posted
Rating:
#73752
Avatar

Honoured member

An error has occurred

PHP WARNING [2] imagettfbbox() [<a href='PHP: imagettfbbox - Manual'>function.imagettfbbox.php</a>]: Problem loading glyph in D:\UniServer\www\sources\themewizard.php on line 289 (version: 7.1.4, PHP version: 5.3.6, URL: /adminzone/index.php?page=admin_setupwizard&type=step10)
Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.
File    'D:\UniServer\www\sources\failure.php'
Line    '674'
Function    'get_html_trace'
Args    

File    'D:\UniServer\www\sources\global2.php'
Line    '965'
Function    '_fatal_exit'
Args    

'PHP WARNING [2] imagettfbbox() [<a href=\' http://www.php.net/manual/en/function.imagettfbbox.php\'>function.imagettfbbox.php</a>]: Problem loading glyph in D:\UniServer\www\sources\themewizard.php on line 289'

File    'D:\UniServer\www\sources\failure.php'
Line    '214'
Function    'fatal_exit'
Args    

'PHP WARNING [2] imagettfbbox() [<a href=\'http://www.php.net/manual/en/function.imagettfbbox.php\'>function.imagettfbbox.php</a>]: Problem loading glyph in D:\UniServer\www\sources\themewizard.php on line 289'

File    'D:\UniServer\www\sources\global2.php'
Line    '839'
Function    '_ocportal_error_handler'
Args    

'warning'

2

'imagettfbbox() [<a href=\'http://www.php.net/manual/en/function.imagettfbbox.php\'>function.imagettfbbox.php</a>]: Problem loading glyph'

'D:\UniServer\www\sources\themewizard.php'

289

Function    'ocportal_error_handler'
Args    …

File    'D:\UniServer\www\sources\themewizard.php'
Line    '289'
Function    'imagettfbbox'
Args    

26

0

'D:\UniServer\www/data/fonts/Vera.ttf'

'(unnamed)'

File    'D:\UniServer\www\adminzone\pages\modules\admin
_setupwizard.php'
Line    '706'
Function    'generate_logo'
Args    

'(unnamed)'

'Spreading the word of default'

false

'_unnamed_'

'logo-template'

File    'D:\UniServer\www\adminzone\pages\modules\admin
_setupwizard.php'
Line    '77'
Function    'step10'
Class    'Module_admin_setupwizard'
Object    Module_admin_setupwizard::__set_state(array( ))
Type    '->'
Args    

File    'D:\UniServer\www\sources\zones.php'
Line    '386'
Function    'run'
Class    'Module_admin_setupwizard'
Object    Module_admin_setupwizard::__set_state(array( ))
Type    '->'
Args    

File    'D:\UniServer\www\sources\site.php'
Line    '967'
Function    'load_module_page'
Args    

'adminzone/pages/modules/admin_setupwizard.php'

'admin_setupwizard'

File    'D:\UniServer\www\sources\site.php'
Line    '750'
Function    'request_page'
Args    

'admin_setupwizard'

true

File    'D:\UniServer\www\adminzone\index.php'
Line    '51'
Function    'do_site'
Args    
Back to the top
 
Posted
Rating:
#73757
Avatar

Hmm, does your PHP info show freetype installed?

What does this OcCLE command say?

Code

:print_r(gd_info());


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#73770
Avatar

Honoured member

:print_r(gd_info());:

Array ( [GD Version] => bundled (2.0.34 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => [GIF Read Support] => 1 [GIF Create Support] => 1 [JPEG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => [XBM Support] => 1 [JIS-mapped Japanese Font Support] => )
Back to the top
 
Posted
Rating:
#73830
Avatar

Honoured member

bump
Back to the top
 
Posted
Rating:
#73832
Avatar

It looks like your PHP install may have a bug. I should be able to workaround it, but I'm working on themes this weekend.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#73834
Avatar

Honoured member

no worries, I'll try a different dev platform.
Back to the top
 
Posted
Rating:
#73918
Avatar

New fix. This explicitly checks a TTF file will load before relying on TTF fonts.

Attachment
» Download: themewizard.php (58 Kb, 117 downloads so far)


Your system is reporting it has GD and FreeType support, but it's failing.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: