Fabrik Home

Go Back   Fabrik > Fabrik 2.0.x > Community Support


Notices

Community Support This forum is for Subscribers on the Free plan. Members of staff will respond on a best effort basis, which will depend on the current Subscriber Support load. We also encourage community self-help in this forum, so if you can help someone, please do so! Good karma up for grabs.

Reply
 
Thread Tools
Old 07-25-2010, 12:58 AM   #1
ITWorksSoft
Junior Member
 
Join Date: Jun 2010
Location: Southern California
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
ITWorksSoft has not earned any Fabrik kudos yet
Unhappy Forms not displaying in article using Fabrik plugin-solved

I'm getting...

Fatal error: Class 'JSimpleCrypt' not found in C:\wamp\www\cwu\cwucontent\components\com_fabrik\v iews\form\view.html.php on line 595

when using the Plugin plg_fabrik_2.0rc5.zip to display a Fabrik FORM in a Joomla article using this code in my article content:

{fabrik view=form id=3}

Note: Displaying a TABLE in an article works fine.

I just got the latest SVN this morning (7/24/2010).

What could be wrong? Thanks for any help you can give me!


Last edited by ITWorksSoft; 07-30-2010 at 06:15 PM.. Reason: Title change
ITWorksSoft is offline   Reply With Quote


Old 07-27-2010, 06:49 PM   #2
ITWorksSoft
Junior Member
 
Join Date: Jun 2010
Location: Southern California
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
ITWorksSoft has not earned any Fabrik kudos yet
Default Fatal error: Class 'JSimpleCrypt'

Here's a stack trace.... (still can't figure it out, anyone have a clue? )

Fatal error: Class 'JSimpleCrypt' not found in C:\wamp\www\cwu\cwucontent\components\com_fabrik\v iews\form\view.html.php on line 599


Call Stack
# Time Memory Function Location
1 0.0023 115608 {main}( ) ..\index.php:0
2 0.2835 6729888 JSite->dispatch( ) ..\index.php:68
3 0.2938 7089192 JComponentHelper->renderComponent( ) ..\application.php:124
4 0.2996 7166008 require_once( 'C:\wamp\www\cwu\cwucontent\components\com_content \content.php' ) ..\helper.php:162
5 0.3077 7561472 JController->execute( ) ..\content.php:35
6 0.3077 7562344 ContentController->display( ) ..\controller.php:236
7 0.3136 7844048 JController->display( ) ..\controller.php:53
8 0.3274 8337216 ContentViewArticle->display( ) ..\controller.php:310
9 0.5913 19501656 JDispatcher->trigger( ) ..\view.html.php:102
10 0.5915 19503936 JEvent->update( ) ..\dispatcher.php:170
11 0.5915 19504736 call_user_func_array ( ) ..\event.php:67
12 0.5915 19504944 plgContentFabrik->onPrepareContent( ) ..\event.php:0
13 0.6137 20343064 preg_replace_callback ( ) ..\fabrik.php:83
14 0.6137 20345176 plgContentFabrik->replace( ) ..\fabrik.php:0
15 0.6618 22842288 FabrikControllerForm->display( ) ..\fabrik.php:389
16 0.6624 22850672 fabrikViewForm->display( ) ..\form.php:92
17 1.2488 30843624 fabrikViewForm->_loadTmplBottom( ) ..\view.html.php:125
18 1.2535 30855672 fabrikViewForm->_cryptQueryString( ) ..\view.html.php:583
ITWorksSoft is offline   Reply With Quote
Old 07-30-2010, 06:14 PM   #3
ITWorksSoft
Junior Member
 
Join Date: Jun 2010
Location: Southern California
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
ITWorksSoft has not earned any Fabrik kudos yet
Talking Forms not displaying in article with Fabrik Plugin-solved

Finally solved the problem with forms not displaying in an article when using the Fabrik plugin...

There was some kind of confict between Fabrik Forms and Breezing Forms (Facile Forms) plugin which I also have installed because when this line is executed in

/component/com_fabrik/views/forms/view.html.php ...

function _cryptQueryString( &$aHiddenFields )
{
jimport( 'joomla.utilities.simplecrypt' );
jimport( 'joomla.utilities.utility' );
----> $crypt = new JSimpleCrypt();


Breezing Forms intercepts the call with this...

/administrator/components/com_facilforms/classloader.php ...

function breezingformsClassLoader($class){

switch($class){

/**
* Common "Moses"
*/
case 'mosMainFrame':
require_once(JPATH_SITE . '/plugins/system/legacy /mainframe.php');
break;
....

/**
* Common J! 1.5 Classes
*/

case 'JRecordSet':
require_once(JPATH_SITE . '/libraries/joomla/database/recordset.php');
break;
case 'JLog':
.... etc ...

but JSimpleCrypt is not defined in this file, so the whole thing poops out!


=================
SOLUTION:
=================

As a temp fix, I added this line to the bottom of breezingformsClassLoader function found in

/administrator/components/com_facilforms/classloader.php ...


//FIX - This case was missing and was causing Fabrik forms not to load in a frontend article when using Fabrik Forms Plugin.
case 'JSimpleCrypt':
require_once(JPATH_SITE . '/libraries/joomla/utilities/simplecrypt.php');
break;


So that JSimpleCrypt can load correctly for Fabrik.

Not sure why Breezing forms intercepts the Fabrik call but at least this fixes the problem. Hope it helps someone else, too!
ITWorksSoft is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal Error: Class 'FabrikControlerVisualization' frank.3473 Bronze Subscriber Support 1 05-17-2010 09:10 AM
Fatal error - Class 'JMailHelper' not found marioivan Bronze Subscriber Support 1 10-04-2009 07:14 PM
Fatal error: Class 'JSimpleCrypt' not found cleone Fabrik 2.0 Beta Testing 2 08-08-2008 02:23 PM
Fatal error: Class 'JDatabaseMySQL' not found error eduardo Fabrik 2.0 Beta Testing 4 04-13-2008 02:57 PM
MOVED: Fatal error: Class 'JDatabaseMySQL' not found error cheesegrits Installation and Upgrading 0 04-12-2008 07:46 PM

» News
Fabrik 2.0.1 released
Please read this blog... [Read More]
Fabrik 2.0 stable released
Please read this ... [Read More]
» Unfuddle SVN
Project: Fabrik 2.x
Rev Comment
4047 fixed <= / >= url filters were incorrectly quoting numeric values
4046 changed: table group by dropdown in admin now allows you to select the raw version of the element
4045 added: table option to deleted joined data when deleting records fixed: several xhtml strict/css validation issues
4044 fixed: using user element in non default connection, any prefilter set up to use said element would generate an SQL error
4043 changed: db join element's concat statement now run through parsemessageforplaceholder()
4042 fixed: email form plugin. Generated error if sending from admin whilst using an article template
4041 fr-FR admin language file: element plugin - fabrikgooglemap
4040 added: digg & rating elements now work with js turned off fixed: some xhtml strict validation errors
4039 fixed: incorrect quoting of dbjoin table filter autocomplete hidden fields
4038 changed: plugin controller - pluginAjax() - now allows for noajax=1 where by $app does redirect (allows for use of ajax...
Powered by vBadvanced CMPS v3.0.0

All times are GMT. The time now is 02:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios