On uploading a jpeg 270 x 360 image while creating a pblog entry, these messages are returned:

=============
* file_check_upload = SUCCESS
* $file = stdClass Object ( [filename] => IMG_1348.jpg [filepath] => /Applications/MAMP/tmp/php/IMG_1348.jpg [filemime] => image/jpeg [filesize] => 59281 [source] => image )
* Your pblog has been created.

The selected file /private/tmp/IMG_1348.jpg could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
=============

No images are displayed

On uploading a zip file, theses messages are displayed:

=============
* file_check_upload = SUCCESS
* $file = stdClass Object ( [filename] => Archive.zip [filepath] => /Applications/MAMP/tmp/php/Archive.zip [filemime] => application/zip [filesize] => 395997 [source] => image )
* Created new alias testing_zip_file for node/27
* Created new alias testing_zip_file/feed for node/27/feed
* Your pblog has been created.
=============

Again, no images are shown

The user has all of the pblog permissions.

status report:
=============
Drupal 5.1
Configuration file Protected
Cron maintenance tasks Last run 3 days 7 hours ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
MySQL database 5.0.19
PHP 5.1.6
Unicode library PHP Mbstring Extension
Web server Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2

Comments

Jack_Sparrow’s picture

I have the same problem...

I sent Baldy a request again, hopefully we can assist here somehow???
Baldy let us know if you need assistance, this module is worthwhile!

JS

eggthing’s picture

I've got this problem too in both the newest pblog-5.x-1.x-dev.tar.gz version and the pblog-5.x-0.9.zip version.

Aleet’s picture

I have similar problem. No pic showing up when I attach a zip file to the pblog node when I first create it. Are you supposed to just attach a zip file, like a regular attachment? Nothing shows up. Only way to get image to show up is to upload an image in the IMAGE field, which then eliminates the need for pblog because there's only one image to view. When I click on the image, I get the larger image and a few identical thumbs underneath.

This is a great module, if and when working. Please don't give up.

tomohiro’s picture

First of all, Thank baldy for this handy module.
Since the issue haven't been answered...let me make some suggestions that you may try and see if it can resolve the problem.

1. About the zip file of the pics, you have to make sure that no path info are being saved. (For example, some zip programs support the right click pop up menu "Add to xxx.zip", by default, the path info will be saved so that when you unzip, the same path will be created under the directory you unzip to)

2. About the upload directory (the filesystem of drupal), pblog assumes that you create the filesystem by default, that is, directory named "files" under the drupal installation directory. If you used another name, you have to modify the code (*1). Edit the pblog.module and do a search and replace for "files" with the directory name you used. (There should be 16 occurence to be replace for version 5.x-1.x-dev)

3. About the creation of pblog content, when you create the pblog content, make sure that you choose "Full HTML" under "Input Format" and the zip file should be upload using the "Image:" not the "File attachements" section. Existing content created using "Input Format" other than "Full HTML" can also be edit and change back to "Full HTML".

*1. I apologize if baldy feel offended about the code modification suggestion. Since we couldn't hear anything from you and thought you are busy. Just wanna get this wonderful tool to work for those who wanna use it.

baldy’s picture

Status: Active » Postponed (maintainer needs more info)

tomohiro thanks for helping out with your suggestion.
Do you know the variable name I could use instead of hard coding with files?

tomohiro’s picture

Hi, Baldy,

You can use the file_directory_path() api function to get the Drupal file system path:

$dfspath = file_directory_path();

The return value does not contain a trailing slash "/", so you have to concat like:

$dfspath . "/pblog/"

Thanks.

baldy’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fixed in version 5.x-1.2.

Jack_Sparrow’s picture

Awesome!
It's working now...!
Thanks baldy...!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.