vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   GD issue (https://vborg.vbsupport.ru/showthread.php?t=177048)

mattswanson 04-24-2008 01:51 PM

GD issue
 
I'm not a programmer a bit of a newbie to the server and systems side of things so please bear with me.

I've been having problems getting GD to work on our installation of Vbulletin. Recently in talking to one of the systems guys at our host they told me that GD has to be loaded dynamically and to use this to call it:
Code:

<?php

dl('gd.so');

?>

To the best of my knowledge all of the appropriate settings are set up in our admin to support GD so I'm guessing that this not how it is set up in vbulletin. What do I need to do and where do I need to do it to get this to work on my installation?

Dismounted 04-25-2008 05:37 AM

Create a new plugin through the Admin CP, using the init_startup hook. Put this inside that plugin:
PHP Code:

dl('gd.so'); 


mattswanson 04-25-2008 11:23 AM

Ok, I set up the plugin as instructed and everything is set to active. I'm still getting a broken image link in the admin when I try to set up GD under the Images Setting.

Is there something I need to do to "reboot" the system or should it be active now and I'm missing something else?

Dismounted 04-25-2008 11:42 AM

Add this underneath (for debugging):
PHP Code:

if (!extension_loaded('gd'))
{
    die(
'GD Not Loaded!');
}
else
{
    die(
'GD Loaded');


You will get a message telling you if GD is loaded or not.

mattswanson 04-25-2008 02:53 PM

Well that pretty much blew up my forum. The good news is that it is telling me that GD is loaded, the bad news is that now every page of my forum and admin simply say GD Loaded and I can't get back into the admin to turn it off.

Lynne 04-25-2008 03:02 PM

ftp to your site and edit config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 

Then you should be able to get into your Admin CP and disable that plugin.

MoT3rror 04-25-2008 03:02 PM

Put this line in your config.php file before the ?>

PHP Code:

define('DISABLE_HOOKS'true); 

This will allow you to access your forums but will disable all plugins.

Lynne 04-25-2008 03:06 PM

*jinx* :D

mattswanson 04-25-2008 03:38 PM

Ok, thanks. That got the site back.

Well the good news is I've got GD running, but I can't image Verification Library settings to work. I still have a broken image icon showing up there.

Matt

Lynne 04-25-2008 05:08 PM

Then you probably don't have the path to the library set correctly. The path I use is "/usr/bin/" whereas they show in the example "/usr/local/bin/". So, try different paths.


All times are GMT. The time now is 06:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01842 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete