Status
Not open for further replies.

Mick

Customer
Hi there,

I have been trying to import files from my vbgallery install without much luck.

I have chmodded the upload folder...

Basically it seems to import all the categories fine. it even see's that there is 30,000+ images...

It actually builds folders in the UPLOAD directory, but it does not upload images at all.

no images are uploaded it just hangs saying:

Importing...Please wait until the importer has finished.

But nothing apart from folders are being created?

Thank you.

Mick
 
Did you ensure to also chmod the subfolder of the upload folder?

Also, ensure that mkdir is available on your system, as the importer will be required to create new subdirectories when importing.
 
It writes all the subfolders?

The importer just does not place any files/images?

however the new subfolders are all written 755 by the importer???

I found this snippet from the web, would this have any effect on my situation?

Code:
You might notice that when you create a new directory using this code:

mkdir($dir, 0777);

The created folder actually has permissions of 0755, instead of the specified 0777. Why is this you ask? Because of umask(): http://www.php.net/umask 

The default value of umask, at least on my setup, is 18. Which is 22 octal, or 0022. This means that when you use mkdir() to CHMOD the created folder to 0777, PHP takes 0777 and substracts the current value of umask, in our case 0022, so the result is 0755 - which is not what you wanted, probably.

The "fix" for this is simple, include this line:

$old_umask = umask(0);

Right before creating a folder with mkdir() to have the actual value you put be used as the CHMOD. If you would like to return umask to its original value when you're done, use this:

umask($old_umask);

I was just thinking if the importer writes the subfolders at 755 then after that it will not have permission to write the files?

This is a guess by the way?

Thank you Fillip H.

Mick
 
Last edited:
I hate bumping threads, but Fillip H. have you considered my last post?

I cannot use this until all my vbgallery items are imported, and with your new DBSEO integration I would really like to get this going.

Thank you

Mick
 
Could you please re-send the FTP and AdminCP access details so I can look into this further?
 
I cannot give you FTP access the server is not setup for that.

I could give you an admin account?

Would that be enough?

Cheers
Mick
 
Fillip H.,

Is this any use to you from my PHP-FPM LOGS

[29-Jan-2014 21:15:46 UTC] PHP Fatal error: Access to undeclared static property: Gallery_Importer::$this in /*****/*****/******/forum/dbtech/gallery/includes/class_import.php on line 932

PHP:
		switch ($source_type)
		{
			case 'gif':
			case 'bmp':
				imagegif($destination_image_handle, $new_name);
				break;
			case 'jpg':
				imagejpeg($destination_image_handle, $new_name, self::$this->registry->options['dbtech_gallery_jpg_res']);
				break;
			case 'png':
				imagepng($destination_image_handle, $new_name);
				break;
		}

LINE 932
imagejpeg($destination_image_handle, $new_name, self::$this->registry->options['dbtech_gallery_jpg_res']);

Cheers
Mick
 
Last edited:
I fixed this by temporarily removing

, self::$this->registry->options['dbtech_gallery_jpg_res']

I am not bothered by images being 100% quality.

I think that is what that does is call the quality
 
I've changed that and changed all other instances of self:: in that file, that should be fixed for v1.0.7 :)
 
Yeah I meant 1.3.1. I'm updating both mods at the moment to add the category bit requested :)
 
Status
Not open for further replies.

Similar threads

  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
3
Views
852

Legacy DragonByte Gallery

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
865
Customer rating
0.00 star(s) 0 ratings
Back
Top