vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Image Hosting (https://vborg.vbsupport.ru/showthread.php?t=75293)

loneranger 03-01-2005 07:25 PM

have you all tried a clean install removing all the phrases

what version of vbulletin are you using plz try a 3.07 to keep the same as my server as can't find a fault

MiskaTorn 03-01-2005 08:48 PM

Quote:

Originally Posted by loneranger
have you all tried a clean install removing all the phrases

what version of vbulletin are you using plz try a 3.07 to keep the same as my server as can't find a fault

Yeah I used 3.0.7.

Also I had a lot of troubles during the install, also during the uninstall, the file edits did not work. So I manually uninstalled everything the reinstalled it manually. I opened the files and figured out the queries, I am going to try to do another clean install and see if I can come up with any solutions, I will let you know.

MiskaTorn 03-01-2005 09:05 PM

You missed uninstall groups in your uninstall query.

Also, I redownloaded and uploaded, and installed...I still run into the same exact problem. User groups are set correctly too.

MiskaTorn 03-01-2005 09:12 PM

I found an error.

In index.php you have it looking for template_mods.php instead of template.php

Change: install\hacks\image_hosting\12\index.php
Code:

if ($_REQUEST['do'] == "genreadme") {
        if ($_REQUEST['upgrade'] != 1) {
                require_once('./file_mods.php');
                require_once('./template_mods.php');
        } else {
                require_once('./upgrade_mods.php');
        }
}

To
Code:

if ($_REQUEST['do'] == "genreadme") {
        if ($_REQUEST['upgrade'] != 1) {
                require_once('./file_mods.php');
                require_once('./templates.php');
        } else {
                require_once('./upgrade_mods.php');
        }
}

Also for correct unsinstall
Change: install\hacks\image_hosting\12\uninstall_queries.p hp
Code:

<?php

// Queries

$query['uninstall'][] = 'ALTER TABLE '.TABLE_PREFIX.'language DROP phrasegroup_imghost';

$query['uninstall'][] = 'DELETE FROM '.TABLE_PREFIX.'phrasetype WHERE phrasetypeid=956';

$query['uninstall'][] = 'DROP TABLE IF EXISTS '.TABLE_PREFIX.'hosted';

?>

To
Code:

<?php

// Queries

$query['uninstall'][] = 'ALTER TABLE '.TABLE_PREFIX.'language DROP phrasegroup_imghost';

$query['uninstall'][] = 'DELETE FROM '.TABLE_PREFIX.'phrasetype WHERE phrasetypeid=956';

$query['uninstall'][] = 'DROP TABLE IF EXISTS '.TABLE_PREFIX.'hosted';

$query['uninstall'][] = 'DROP TABLE IF EXISTS '.TABLE_PREFIX.'groups';

?>

Also in the filemod it has you look for though if you make this file mod it will pull a parse error because of the $ sign in there.
'subscription' => vbphrase['group_paid_subscriptions'],

which should be
'subscription' => $vbphrase['group_paid_subscriptions'],

bamaster 03-02-2005 01:28 AM

I too am getting an error installing this.

It happens after I click the DONE button on the page that "Rebuild Style Information".

Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /path/forum/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/share/pear') in /path/forum/includes/db_mysql.php on line 389

I'm running 3.0.7
RedHat Linux 2.4.21-15.0.3.ELsmp
MySQL 3.23.58
GD 2.0.12

Hacks:
v3Articles
vBadvanced

loneranger 03-02-2005 04:53 AM

ok i have noticed there is some errors with the installation process i will re-write this part and send you all the files hopefully i will be able to solve some problems

MiskaTorn 03-02-2005 01:44 PM

I could be wrong, but in image_host.php on line 144 aren't you missing a close bracket?

loneranger 03-02-2005 02:07 PM

right think i have sorted it if a couple of you can test it and let me know thanks

this file should fix the problem with the blank screen when attempting to upload images

try this now

MiskaTorn 03-02-2005 02:11 PM

Almost :)

Warning: getimagesize(home/doyouwa/public_html/bbb/hosted_images/1.gif): failed to open stream: No such file or directory in /image_host.php on line 196
unable to get image size

Also I think you need to remove the / in the $dir/ in that copy
Code:

//upload image if all correct
        @copy($_FILES['img'][tmp_name], "$dir/".$_FILES['img']['name']) ;

//check the image size delete if too big and print error
        if(!$size = getimagesize($dir .$host_filename)) die('unable to get image size');


MiskaTorn 03-02-2005 02:39 PM

Ok,
My uploading is now working.

After doing the edit above, removing the / from the $dir/

In the admin panel where it has

Upload Directory
The full local path to the upload directory eg. home/user/www/forum/hosted_images

Change that to
The full local path to the upload directory eg. /home/user/www/forum/hosted_images/


All times are GMT. The time now is 04:40 PM.

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.01323 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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