Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $25.00
Net Balance: $23.57
Left to go: $76.43

Donations
Anonymous ($15)Jun-14
Anonymous ($10)Jun-10

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse admin AntiHarvesting AntiMalUser AntiSpam API Banning Beats billige black Blocks blue Captcha cell Christmas chronolabs Cloud content Conversion Delivery demo docek download Dresses editor evden eve facebook familia floor free Google+ herre Honeypot Human inStyler Invoice IP IPLog jQuery JSON kantor lamps List log logger mobile module modules Monster mulberry MyAlbum-p newbb news online Outlet PageRank pandora Permissions PHP pink Plugin Plus portal Prevention profile project Protector publisher Rights rmcommon Room sale security Server site Smarty Spam stem Studio svn tag tags tdmcreate template Theme themes User userlog website Whitepaper Wishcraft xoops Xortify ZendFramework

New Users

Registering user

# 136114

sinewat

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 »


#1 Posted on: 2009/12/4 14:57 d3downloads 1.47 and xoops 2.4.1
On submitting a download in the d3downloads module, I get following error
Quote:

Fatal error: Class 'XoopsFormDhtmlTextArea' not found in C:\xampp\htdocs\swayams\class\smarty\plugins\function.xoopsdhtmltarea.php on line 34


Lines 22 to 38 in C:\xampp\htdocs\swayams\class\smarty\plugins\function.xoopsdhtmltarea.php, line 34 is bold
Quote:

function smarty_function_xoopsdhtmltarea($params, &$smarty)
{
if (!class_exists('xoopsformelement')) {
require_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
}
$form=null;

if( ! empty( $params['name'] ) ) {
$name = trim($params['name']);
$rows = isset($params['rows']) ? intval($params['rows']) : 5;
$cols = isset($params['cols']) ? intval($params['cols']) : 50;
$value = isset($params['value']) ? $params['value'] : "";
$form = new XoopsFormDhtmlTextArea($name,$name,$value,$rows,$cols);
$rendered = $form->render();
print '<div id="'.$name.'_bbcode_buttons_pre" style="'.@$params['pre_style'].'">'.str_replace( array( '<textarea' , '</textarea><br />' ) , array( '</div><textarea' , '</textarea><div id="'.$name.'_bbcode_buttons_post" style="'.@$params['post_style'].'">' ) , $rendered ) . '</div>' ;
}
}


Xoops debug Error info
Quote:

None All Errors (1) Queries (58) Blocks (3) Extra (23) Timers(8)
Errors
Warning: xoopsOption[template_main] should be defined before including header.php in file /footer.php line 62


Xoops info
Quote:

XOOPS Version XOOPS 2.4.1
PHP Version 5.2.8
mySQL Version 5.1.30-community
D3downloads 1.47


How do i get this module to work?

Top

nmshah
Just can't stay away
Just can't stay away
Joined:
2007/7/2 3:24
Group:
Registered Users
Posts: 544
(Show More) (Show Less)


#2 Posted on: 2009/12/4 17:24 Re: d3downloads 1.47 and xoops 2.4.1
if (!class_exists('XoopsFormDhtmlTextArea')) {
require_once 
XOOPS_ROOT_PATH."/class/xoopsformloader.php";
}


Try changing the question!


Top

trabis
Core Developer
Core Developer
Joined:
2006/9/1 13:10
From Portugal
Group:
Webmaster
Registered Users
Posts: 2198
(Show More) (Show Less)


#3 Posted on: 2009/12/4 22:44 Re: d3downloads 1.47 and xoops 2.4.1
Thanks trabis
Quote:
if (!class_exists('XoopsFormDhtmlTextArea')) {
require_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
}


But can you tell me where to put these lines. I have very little knowledge of php.

Top

nmshah
Just can't stay away
Just can't stay away
Joined:
2007/7/2 3:24
Group:
Registered Users
Posts: 544
(Show More) (Show Less)


#4 Posted on: 2009/12/4 23:28 Re: d3downloads 1.47 and xoops 2.4.1
Ok, i figured it out. Thanks, it works perfectly now

Top

nmshah
Just can't stay away
Just can't stay away
Joined:
2007/7/2 3:24
Group:
Registered Users
Posts: 544
(Show More) (Show Less)


#5 Posted on: 2009/12/5 1:37 Re: d3downloads 1.47 and xoops 2.4.1
And what was the solution?

Top

Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7030
(Show More) (Show Less)


#6 Posted on: 2009/12/5 2:08 Re: d3downloads 1.47 and xoops 2.4.1
Replacement of the similar code on Line 24 in \class\smarty\plugins\function.xoopsdhtmltarea.php
See both code snippets.

Of course, it is a bug, but it is weird, that suddenly xoopsformelement is loaded but not xoopsformdhtmltextarea, while they both load initially.

Top

ghia
Community Support Member
Community Support Member
Joined:
2008/7/3 14:19
From Belgium
Group:
Registered Users
Posts: 4946
(Show More) (Show Less)


#7 Posted on: 2009/12/18 3:33 Re: d3downloads 1.47 and xoops 2.4.1
can you fix it in XOOPS 2.4.3?

Top

voltan
Theme Designer
Theme Designer
Joined:
2006/12/5 11:55
From Tehran
Group:
Registered Users
Designer Group
Posts: 549
(Show More) (Show Less)


#8 Posted on: 2009/12/18 4:02 Re: d3downloads 1.47 and xoops 2.4.1
Should be fixed with this.

Top

ghia
Community Support Member
Community Support Member
Joined:
2008/7/3 14:19
From Belgium
Group:
Registered Users
Posts: 4946
(Show More) (Show Less)


#9 Posted on: 2009/12/18 12:42 Re: d3downloads 1.47 and xoops 2.4.1
I'm not sure , but I think some times it work and some times it did,t work !!! ( or some times 'xoopsformelement loaded and some times not loaded )
for example some minutes ago I checked it ( whit pico ) and it work whit out problem ! but at morning I installed pico on a website and pico did't work and I was forced to change (( xoopsformelement )) whit (( XoopsFormDhtmlTextArea )) !!!!!!!!!??????????

Top

voltan
Theme Designer
Theme Designer
Joined:
2006/12/5 11:55
From Tehran
Group:
Registered Users
Designer Group
Posts: 549
(Show More) (Show Less)


#10 Posted on: 2009/12/18 19:34 Re: d3downloads 1.47 and xoops 2.4.1
Quote:
Should be fixed with this.
Sorry, that was a wrong assumption.
Quote:
can you fix it in XOOPS 2.4.3?

The only way to let it work is to correct the smarty plugin code by replacing the code from the first post by the one Trabis provided.

Top

ghia
Community Support Member
Community Support Member
Joined:
2008/7/3 14:19
From Belgium
Group:
Registered Users
Posts: 4946
(Show More) (Show Less)




(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You can post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]