Fileupload doesn't actually upload files

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008, 07:17 AM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 39
My Image Upload Module doesn't save a file anywhere. I can go through the process of selecting the image and submitting a new story, the page takes longer to load as if it's uploading the image, but an image is never uploaded. I check the image directory in my site root and nothing has been uploaded there.

I have spent hours configuring every little detail and making every code change to enable the Image Upload module. I am 99% sure I've done everything correctly, however images will not upload.

I am on Pligg 9.9 Beta. Extra Fields enabled, module enabled, all code changes made, images folder created in root directory with 777 permissions, and made change to module_libs.php to get rid of the warning.

The only part of the process I wasn't clear on was for the change to submit.php. Can somebody familiar with Image Upload for Pligg 9.9 look at this function from submit.php and tell me if it correct?

Code:
// submit step 3
function do_submit3() {
	global $db;

	$linkres=new Link;

	$linkres->id=$link_id = strip_tags($_POST['id']);
	$linkres->read();

	totals_adjust_count($linkres->status, -1);
	totals_adjust_count('queued', 1);

	$linkres->status='queued';

	$vars = array('linkres'=>$linkres);
	check_actions('do_submit3', $vars);

	$linkres->store_basic();
	// START: Image Upload Module
	check_actions('image_upload_process');
	// END: Image Upload Module
	$linkres->check_should_publish();
	
	if(!empty($_POST['trackback'])) {
		require_once(mnminclude.'trackback.php');
		$trackres = new Trackback;
		$trackres->url=trim($_POST['trackback']);
		$trackres->link=$linkres->id;
		$trackres->title=$linkres->title;
		$trackres->author=$linkres->author;
		$trackres->content=$linkres->content;
		$res = $trackres->send();
	}

	header("Location: " . getmyurl('upcoming'));
	die;

}
You can view my site at JoomlaVote.com
Thanks!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 07:34 PM
New Pligger
Pligg Version: 9
 
Join Date: Apr 2008
Posts: 6
Quote:
Originally Posted by swese44 View Post
My Image Upload Module doesn't save a file anywhere. I can go through the process of selecting the image and submitting a new story, the page takes longer to load as if it's uploading the image, but an image is never uploaded. I check the image directory in my site root and nothing has been uploaded there.

I have spent hours configuring every little detail and making every code change to enable the Image Upload module. I am 99% sure I've done everything correctly, however images will not upload.

I am on Pligg 9.9 Beta. Extra Fields enabled, module enabled, all code changes made, images folder created in root directory with 777 permissions, and made change to module_libs.php to get rid of the warning.

The only part of the process I wasn't clear on was for the change to submit.php. Can somebody familiar with Image Upload for Pligg 9.9 look at this function from submit.php and tell me if it correct?

Code:
// submit step 3
function do_submit3() {
	global $db;

	$linkres=new Link;

	$linkres->id=$link_id = strip_tags($_POST['id']);
	$linkres->read();

	totals_adjust_count($linkres->status, -1);
	totals_adjust_count('queued', 1);

	$linkres->status='queued';

	$vars = array('linkres'=>$linkres);
	check_actions('do_submit3', $vars);

	$linkres->store_basic();
	// START: Image Upload Module
	check_actions('image_upload_process');
	// END: Image Upload Module
	$linkres->check_should_publish();
	
	if(!empty($_POST['trackback'])) {
		require_once(mnminclude.'trackback.php');
		$trackres = new Trackback;
		$trackres->url=trim($_POST['trackback']);
		$trackres->link=$linkres->id;
		$trackres->title=$linkres->title;
		$trackres->author=$linkres->author;
		$trackres->content=$linkres->content;
		$res = $trackres->send();
	}

	header("Location: " . getmyurl('upcoming'));
	die;

}
You can view my site at JoomlaVote.com
Thanks!
I have the same problem installed the latest image uplod mod for pligg 9.9
Change the code as instructed nothing works ....
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 10:27 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 39
Checked all settings again, GD installed, I have a feeling it is something wrong with the support.php. The tutorial was written for 9.8 or an older version, I guess that in 9.9 this code has to go in submit.php instead of submit_step_3.tpl, is this correct?

Code:
// START: Image Upload Module
check_actions('image_upload_process');
// END: Image Upload Module
Can somebody with Image Upload working in 9.9 please post the code to their submit.php? Thank you.
Reply With Quote
  #4 (permalink)  
Old 04-26-2008, 01:48 AM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 39
Well I got this one solved. The problem was that I had downloaded an old version (.04). Undoing the code changes was a pain, but I got it all sorted out and upgraded to the newest version of 1.03.

If you're having this same problem, make sure you've upgraded to the newest version. While you're undoing your code changes make sure to take a look at the "Upgrading from v.0.1+" section of the ReadMe.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 268 02-03-2012 12:19 PM
[MOD] File Upload Module (v0.1) -- Looking for testers cent Questions and Comments 54 06-11-2008 11:34 AM
ok so which EXACT folder do you suppose to upload the files to? remyxo Questions and Comments 6 12-29-2007 10:37 PM
Mixed files equal to all wrong with pligg and image upload ( for pligg developers ) Peter Questions and Comments 0 11-17-2007 04:55 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development