Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-01-2008, 10:25 PM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Fatal error: Call to undefined method stdClass::get_template_vars()

Hi, all

I got a problem while testing the module Image Upload v1.01 in the Pligg 9.9.5.
Quote:
Fatal error: Call to undefined method stdClass::get_template_vars() in D:\xampp\htdocs\pligg995\modules\image_upload\imag e_upload_main.php on line 128
I find that many people got the similar problem, but I didn't find the solution. Could someone please help me? I am in urgent.
Thanks in advance!

OnlyBlue
Attached Thumbnails
fatal-error-call-undefined-method-stdclass-get_template_vars-image_upload_error.png  

Last edited by OnlyBlue; 10-02-2008 at 05:08 AM..
Reply With Quote
  #2 (permalink)  
Old 10-04-2008, 10:03 PM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
I try to work it out these days, but no result. Who could help me?
Thanks!

OnlyBlue
Reply With Quote
  #3 (permalink)  
Old 10-05-2008, 04:09 AM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
The line 128 in image_upload_main.php is:
Quote:
$storyTitle = htmlentities(stripslashes($smarty->get_template_vars(title_short)));
I add the following two sentences just before this line:
Quote:
include_once('Smarty.class.php');
$smarty = new Smarty;
The Fatal error message disappeared. But I can't see the uploaded image anywhere. What's the problem, and how to do?

Thanks!
Reply With Quote
  #4 (permalink)  
Old 10-05-2008, 07:05 PM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
There's Image Upload v1.03 and it's working fine, at least for me.
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
  #5 (permalink)  
Old 10-05-2008, 07:51 PM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by cmstheme View Post
There's Image Upload v1.03 and it's working fine, at least for me.
Thanks, cmstheme. I'll try to test it.

OnlyBlue
Reply With Quote
  #6 (permalink)  
Old 10-05-2008, 09:58 PM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
cmstheme, thanks again.
The Image Upload v1.03 works!
The conclusion is:
Wrong: pligg9.9.5+Image Upload v1.01
Right: pligg9.9.5+Image Upload v1.03

OnlyBlue
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Call to undefined method: stdClass->get_results() in /data/c8 neale Installation and Upgrade Help 2 01-03-2008 03:25 PM
Fatal error: Call to undefined function checklevel() in evansun Installation and Upgrade Help 0 09-14-2007 10:45 PM
Pligg Errors tcritic General Help 1 08-15-2007 01:28 PM
Fatal error: Call to undefined function: getmyurl() pligglover Installation and Upgrade Help 1 07-30-2006 12:36 AM
/var/log/httpd/error_log messages gr8rcake Bug Report 3 01-28-2006 09:28 PM


Search Engine Friendly URLs by vBSEO 3.2.0