vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Image Gallery v1.0 (https://vborg.vbsupport.ru/showthread.php?t=21602)

mojotim 06-30-2001 06:06 PM

I had the Gallery Load Limit
set to the default. I erased the value and the error does not come up now.

mojotim 06-30-2001 06:19 PM

Check out this attachement and tell me if something should be in the filedata, value box.

I also go to the /gallery.php and see no attachments. I see nothing but the blank template.

mojotim 06-30-2001 06:29 PM

Here is the entire substance of my gallery.php page.

Zamtil 06-30-2001 07:31 PM

Have you run yourforums.com/admin/gallerymakethumbs.php? It should spit out a list of file names for all the JPG/BMP/GIFs it finds in your existing attachment table.

mojotim 06-30-2001 08:02 PM

I had to modify it a little:

makeThumb($thumb[attachmentid], $thumb[filename], $filename);
unlink($filename);
set_time_limit();
}
?>

notice the change of set_time_limit();

I'm using safe mode php so it didn't like that.

Anyhoo, I get a blank page. I have attachments, I even (just now) posted a new attachment and ran gallerymakethumbs.php.
Still the blank page.

First-Man 06-30-2001 08:10 PM

Please Update the *.zip File!
thx

mojotim 06-30-2001 08:11 PM

It created the table. Then I ran gallerymakethumbs and got this:

Processing attachment #11: woodchips.jpg.
Processing attachment #12: admin.gif.
Processing attachment #13: 411people2.gif.
Processing attachment #14: easton2.jpg.

So that's good I guess.

Still nothing in gallery.php
Still no filedata value.

I have ImageMagick, I can convert from telnet so I know it's installed correctly. What's up, Please?

Zamtil 06-30-2001 08:16 PM

Quote:

Originally posted by mojotim
I had to modify it a little:

I'm using safe mode php so it didn't like that.


I think safe mode is your other problem as well:

safe_mode_exec_dir string

If PHP is used in safe mode, system() and the other functions executing system programs refuse to start programs that are not in this directory.

From what I saw in your database screenshot, the filedata field was blank. I'm guessing the inserts are failing. Hopefully you have rights to update your PHP.INI and add the above statement. Probably the safest thing to do is to make a copy of convert in your existing safe mode directory... pointing it at a shared bin directory kind of defeats the purpose.

You may want to remove the line:

PHP Code:

        unlink($thumbname); 

From makeThumb in functions.php. If thumbnails are being created, you should have a bunch of /tmpPath/th_[RandomStuff] files. You're also gonna need to clear out your 'thumb' table once those th_ files start appearing.

Obviously I didn't test in safe mode. =)

Znaper 06-30-2001 09:01 PM

The pics dosn't display!

See here: http://www.znapers-board.de/forum/gallery.php

mojotim 06-30-2001 09:10 PM

Telnet in and go to a directory where you have some images.

Then type this:

convert -geometry 120x120 filename.jpg new_filename.jpg

this will create a thumg 120x120 of filename.jpg

if you can do this than cool, your problem lies elsewhere and I can't help you because I'm too stupid to get this to work too (different problems)


All times are GMT. The time now is 11:23 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.01289 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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