Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bc

Pages: [1] 2
1
Discussion & Troubleshooting / Conflict with PHP 4.3.2
« on: June 14, 2003, 09:26:33 PM »
thanks for the heads up on the link, but I still can't figure out what's causing the uncalled function error for is_executable()

zak from php tells me that the function has been included in libeay32.dll (ENGINE_cmd_is_executable), but it's still not showing up, even with function_exists('is_executable');. I'll check later today to see if it's due to Apache 2.0


btw if anyone can help me out, I'm running the PHP 4.3.2 as a sapi module for Apache 2.0.46 on Windows

2
Discussion & Troubleshooting / Conflict with PHP 4.3.2
« on: June 13, 2003, 12:02:15 AM »
I recently upgraded PHP 4.3.2 and discovered that the Auto-Thumbnail and Auto-Resizer features in the admin control panel stopped working. Upon investigating, I isolated the problems to the is_executable() function called in the image_utils.php of the ROOT_PATH/includes direction that checks for the presence of the image conversion tool executables.

Indeed, I get fatal errors that the is_executable() function is not defined, and I could not find any instance of it in the PHP zip package for Windows -- I did find is_readable and is_writable, however. I just asked zak @ php.net in an email about the issue, for I am pretty sure that it is definitely missing (how odd  8O) from the PHP release.

My recommendation for the time being is to comment out any lines containing the is_executable() function if you are experiencing the same problems with PHP 4.3.2 on Windows.

3
Installation, Update & Configuration / netbpm installation pb
« on: June 12, 2003, 11:53:56 PM »
Did you get the right package of NetPBM based on the operating system?

Next, if you use a unix-type operating system, is the directory containing netpbm both readable and executable? (chmod 755)

4
Did you enable the 'Auto-Create Thumbnail' option in the Settings? If so, have you ever been able to create thumbnails automatically after generating? Also, make sure that your image conversion tool (e.g., NetPBM, ImageMagick) is properly configured.

Another thing to check is your webserver error logs for any errors. Any misconfiguration or problems may also be attributed to an upgrade in webserver or php version.

5
Chit Chat / Retrieving User Password?
« on: June 12, 2003, 11:46:00 PM »
MD5 and MySQL's PASSWORD() are non-reversible, as Jan said. Thank goodness; I wouldn't entrust my password to corrupt image gallery/forums administrators.

http://www.cis.ohio-state.edu/cs/Services/rfc/rfc-text/rfc1321.txt

6
Feedback & Suggestions / clear documntation
« on: May 15, 2003, 07:22:34 PM »
*volunteers

7
Feedback & Suggestions / lost admin password
« on: May 15, 2003, 07:21:46 PM »
Hijack, are you trying to hack into someone else's board, or are you just very new to administrating?

the best you could do is to follow crazy sash's advice to use phpMyAdmin to alter the admin password. otherwise, you just described an odd scenario

8
I use Apache 1.3.xx with PHP 4.3.0 running as a sapi module (Apache2 doesn't seem to support it correctly), and for some reason after I updated PHP from 4.2.3, the thumbnail and auto-resize features stopped working. I'm thinking that there are some incompatibilities between the code and the new version of PHP.

9
Why is it that my 1.7 installation does not recognize the changes to the template themes? I have to change the desired theme pack to the name 'default' in order to get it to load.

10
Discussion & Troubleshooting / Having trouble with thumbnails
« on: December 25, 2002, 01:46:21 AM »
If someone uploads an image with its own thumbnail, you can replace the thumbnail by deleting the corresponding thumbnail name in the /data/media/thumbnails/<category name> directory, and then using the Auto-Thumbnailer feature.

If you can, upload a php file with the content

<?php phpinfo(); ?>

and then view the file from your browser. See what operating system your hosting environment uses (the information is at the top of the output), and download the corresponding image manipulation package. I recommend that you use NetPBM over ImageMagick if it ever comes down to that for thumbnail size and quality reasons. And because I don't see too many mirrors for NetPBM binaries, I suggest that you get the ones that the Gallery project has down at the bottom of http://sourceforge.net/project/showfiles.php?group_id=7130

11
I do recognize that there should not be spaces in urls, but I was talking about replacing spaces with underscores in the filesystem management, as is done in the manual image upload.

For now, I'll get a file-renamer program

12
UGH! :( I was hoping that there would be a more flexible option within the code, but if that'd be in the next version of 4images, I'd appreciate it.

13
Yep, I'm code-illiterate. I need someone to help me out here :p

14
I have a problem where NetPBM breaks upon attempting to generate thumbnails for images whose filenames have spaces in them. This happens when I move images to the media/ folder and make 4images detect new images. Once they are succcessfully uploaded, the auto-thumbnail tells me that there was an error creating thumbnail. I know for a fact that it is the filename, because it only happens on files where there are spaces in the filename, and not for singleword or multiple_word (separated by underscore) filenames.

On the other hand, if I manually add images using the "Add Image" feature in the control panel, it automatically replaces spaces with underscores in the filenames while adding, and thus, avoids the problem. I'm thinking that code that does the same for the detect new images would work, but I'm not any good at php coding. Any help?


Here's the error log from Apache:

[error] PHP Warning:  getimagesize: Unable to open './../data/media//' for reading. in c:\program files\apache group\apache\htdocs\gallery\includes\image_utils.php on line 160
c:\netpbm\jpegtopnm.exe: WRITING PPM FILE
c:\netpbm\pnmtojpeg.exe: Architecture.jpg - No such file or directory
c:\netpbm\jpegtopnm.exe: Too many arguments.  The only argument accepted is the input file specificaton
c:\netpbm\pnmscale.exe: Error reading magic number from PBM file.  Most often, this means your input file is empty.


As you can see, the syntax for the pnmtojpeg is incorrect; it should specify "Contemporary Architecture.jpg" as the filename instead of "Architecture.jpg", and that is why the error shows. I will investigate further into the image_utils.php in the includes folder and see what I can do.

15
Good grief, I was looking at all these support instances for NetPBM because I had a very similar configuration (winXP, apache 1.3.27, php 4.2.3, mysql 3.23.49) and had the exact same problem.

Bingo. fastnsilver hit the problem on the spot.

Pages: [1] 2