Option "On Edit" for plugin "email" doesn't work.

Hi,
I have Joomla 2.5.6 and Fabrik on GitHub 3.0.5.-947-g76c7736.

I have recently problem with group of forms where I use "email" plugin.

If I use option:
Do: email -- in: both (front end +back end) -- on: New
everything works fine

When I use:
Do: email -- in both (front end + back end) -- on: Edit
or:
Do: email -- in both (front end + back end) -- on: Both (New + Edit)
it doesn't work ...

I need for some forms use "email" plugin only when edit form - and it doesn't work for me.
I checked this for other forms and it is the same - It doesn't work - option "On Edit" for "email" plugin.

When try to save form - that I edit ( and when I set up email plugin for "on Edit" option) - I get blank screen (white screen without something), window in browser is hanging up - i need to open new window in browser once again - after that - edited datas - are recorded on fabrik list but email is not send.

Not possible to send email from email plugin with option "On Edit" !

When I don't use email plugin - than I can "edit form" and save it without problem.

Very please about any solution how to send email from "On edit" option for my forms...:confused:
 
Added:

It is the same with receipt plugin!
It doesn't work for option "On Edit"
Do: receipt -- in: Both (front end and back end) -- On: Edit

Is a chance to solve that problem?
 
Just to let you know I got this far in todays new threads, but it's almost 6am, I need to get some sleep. I'll work on this when I wake up in about 8 hours.

-- hugh
 
I can't replicate the white screen issue, but i can confirm the 'edit' issue, think I see where the problem is, working on it.

-- hugh
 
OK, the 'edit' not having the right effect should be fixed in github.

Still haven't bee able to duplicate any white screens when editing forms.

Can you bump the error reporting in your J! global setting up to maximum, see if you get an error msg?

-- hugh
 
As standard i write in Fabrik under Linux with Opera browser.

Now I test it on Windows XP Professional (32 bit) and IE8, and I get:
(On white screen)

Code:
Fatal error: Call to a member function get() on a non-object in  /var/www/myjoomla/plugins/fabrik_element/user/user.php on line 795        
 [IMG]http://reports.mpv.montiera.com/reports/pxlRprt.srf?rid=mmrep&prdct=softonicmpv&hardId=d0f5cf0a00000000000000904bc9782b&lgicName=mntrDealPly&bho=1&type=injection&browser=IE&browserVersion=8.0&rndm=1344848967079[/IMG]

I had in php.ini:
error_reporting = E_ALL & E_DEPRECATED
(it is Production Value)

I have just set up under Joomla:
Joomla -- Global configuration -- Server -- Error reports: Max.
 
OK, so that error gets thrown when you submit the form, on edit?

Can you do this:

Edit the file ./plugins/fabrik_element/user/user.php, and around line 762 you should find:

PHP:
	function getEmailValue($value, $data, $c)
	{
		$key = $this->getFullName(false, true, false);
		$rawkey = $key . '_raw';
		$userid = $value;

Immediately after that, put:

PHP:
var_dump($userid, $key, $data);exit;

Then submit your form again. This should print out some debug info on an otherwise blank page. Copy and paste that output here.

Also, a screenshot of your user element settings, with the Access tab showing, might help.

-- hugh
 
That is:
Code:
string(2) "45" string(43) "ccjom_cc_zapotrzebowanie___zamawiajacy_auto"  array(51) { ["ccjom_cc_zapotrzebowanie___id"]=> string(2) "10"  ["ccjom_cc_zapotrzebowanie___zatw_tak_nie"]=> array(1) { [0]=> string(3)  "TAK" } ["ccjom_cc_zapotrzebowanie___uwagi"]=> string(33) "zatwierdzenie  testowe yyyyyyyyyyy" ["ccjom_cc_zapotrzebowanie___sendemail2"]=> array(1) {  [0]=> string(3) "tak" } ["listid"]=> string(2) "21" ["listref"]=>  string(2) "21" ["rowid"]=> string(2) "10" ["Itemid"]=> string(3) "626"  ["option"]=> string(10) "com_fabrik" ["task"]=> string(12) "form.process"  ["isMambot"]=> string(0) "" ["formid"]=> string(2) "21"  ["returntoform"]=> string(1) "0" ["fabrik_referrer"]=> string(119)  "http://192.168.1.106/cc.joomla/index.php/iso-pracownicy-1/zapotrzebowanie-zatwlista-iso-2/zapotrzebowanie-zatwlista-iso"  ["fabrik_ajax"]=> string(1) "0" ["_packageId"]=> string(1) "0"  ["dc7306635760b1922b91e97cc728570d"]=> string(1) "1" ["format"]=>  string(4) "html" ["fabrik_repeat_group"]=> array(1) { [23]=> string(1) "1"  } ["fabrik_vars"]=> array(1) { ["querystring"]=> array(12) {  ["ccjom_cc_zapotrzebowanie___zamawiajacy_auto"]=> string(4) " D53"  ["ccjom_cc_zapotrzebowanie___date_time"]=> string(38) " B5655 319 35E1B  25717515F58 2 4 A5656" ["ccjom_cc_zapotrzebowanie___nazwa_mat"]=> string(22)  "4D 3174514 356 6 B53 7" ["ccjom_cc_zapotrzebowanie___ilosc_mat"]=> string(0)  "" ["ccjom_cc_zapotrzebowanie___kwota_zapotrz"]=> string(8) " 94854 1"  ["ccjom_cc_zapotrzebowanie___kwota_zapotrz_waluta"]=> string(6) "692A2A"  ["ccjom_cc_zapotrzebowanie___uzasadnienie"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___dodaj_plik_zapotrz"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___termin"]=> string(22) " B5454 0 61E57 41E53 6"  ["ccjom_cc_zapotrzebowanie___recipient1"]=> string(4) " D5E"  ["ccjom_cc_zapotrzebowanie___zatwierdzajacy_auto"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___data_zatw"]=> string(38) " B5655 319 35E1B  25717505558 3 1 A515A" } } ["submit"]=> string(6) "Zapisz" ["view"]=>  string(4) "form" ["ccjom_cc_zapotrzebowanie___id_raw"]=> string(2) "10"  ["ccjom_cc_zapotrzebowanie___zamawiajacy_auto_raw"]=> string(2) "45"  ["ccjom_cc_zapotrzebowanie___date_time_raw"]=> string(19) "2012-08-14  09:44:55" ["ccjom_cc_zapotrzebowanie___nazwa_mat_raw"]=> string(11) "test  000800" ["ccjom_cc_zapotrzebowanie___ilosc_mat_raw"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___kwota_zapotrz_raw"]=> string(4) "0.00"  ["ccjom_cc_zapotrzebowanie___kwota_zapotrz_waluta_raw"]=> string(3) "PLN"  ["ccjom_cc_zapotrzebowanie___uzasadnienie_raw"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___dodaj_plik_zapotrz_raw"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___termin_raw"]=> string(11) "22012-12-01"  ["ccjom_cc_zapotrzebowanie___recipient1_raw"]=> string(2) "48"  ["ccjom_cc_zapotrzebowanie___zatw_tak_nie_raw"]=> array(1) { [0]=>  string(3) "TAK" } ["ccjom_cc_zapotrzebowanie___uwagi_raw"]=> string(33)  "zatwierdzenie testowe yyyyyyyyyyy"  ["ccjom_cc_zapotrzebowanie___zatwierdzajacy_auto_raw"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___data_zatw_raw"]=> string(19) "2012-08-14  13:51:29" ["ccjom_cc_zapotrzebowanie___sendemail2_raw"]=> array(1) { [0]=>  string(3) "tak" } ["ccjom_cc_zapotrzebowanie___zamawiajacy_auto"]=> string(2)  "45" ["ccjom_cc_zapotrzebowanie___date_time"]=> string(19) "2012-08-14  07:44:55" ["ccjom_cc_zapotrzebowanie___nazwa_mat"]=> string(11) "test 000800"  ["ccjom_cc_zapotrzebowanie___ilosc_mat"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___kwota_zapotrz"]=> string(4) "0.00"  ["ccjom_cc_zapotrzebowanie___kwota_zapotrz_waluta"]=> string(3) "PLN"  ["ccjom_cc_zapotrzebowanie___uzasadnienie"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___dodaj_plik_zapotrz"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___termin"]=> string(11) "22012-12-01"  ["ccjom_cc_zapotrzebowanie___recipient1"]=> string(2) "48"  ["ccjom_cc_zapotrzebowanie___zatwierdzajacy_auto"]=> string(0) ""  ["ccjom_cc_zapotrzebowanie___data_zatw"]=> string(19) "2012-08-14 11:52:17"  ["join"]=> array(0) { } }        
 [IMG]http://reports.mpv.montiera.com/reports/pxlRprt.srf?rid=mmrep&prdct=softonicmpv&hardId=d0f5cf0a00000000000000904bc9782b&lgicName=mntrDealPly&bho=1&type=injection&browser=IE&browserVersion=8.0&rndm=1344952341563[/IMG]
 
User (user2) who sign in form on "edit level" is that on .png image.

I use other element-field: user (user1) who singn on "new form" - and that (element-field: user (user1)) is not modified on "edit level".

On .png file:
Nie --> No
Tak --> Yes
 

Attachments

  • user_who_edited_that_form.PNG
    user_who_edited_that_form.PNG
    26.5 KB · Views: 269
Based on the access levels, and the users access rights, can the user submitting the form 'edit' or 'view' the user element?
 
Yes.
In this issue (Our list2 + our form2, group2) we have records wih some numbers of fields (field1,field2, ...field14) that were filled in level1 (our list1 + form1 , group1). That records have next (following) fields empty - field15,field16,... field20 .
In this issue (our list2 +our form2) we use only to fill new fields : field15, field16,...,field20 for existed records (so that records were created with "Add" option on level1 : list1 +form1).

We use "edit records" for existed records and field field1,field2,...,field14 are not accesable for edit - so that fields stay the same - we edit only empty new fields field15, field16,...,field20.

One field e.g. field 17 is element/field: user (zatwierdzaj?cy_auto) and we want to store in that field username of user who edited that records. Our standard user is from access level "CC-ISO_Pracownicy-p" so he can see his username in field on "edited records" but can't put something other in that field.
For that is neccessary option: "Update on edit" set to Yes/tak to have username stored in that field.

It works OK for me.

We wants one field e.g. field 17 to save "Username" value of user who fill in form using " edit record option"
 
I'm confused by "It works OK for me"?

Are you saying the issue has been resolved?

BTW, from your var_dump() results on earlier in the thread, I can't immediately see from the code what the problem would be, as the values all make sense, and you should have a valid $user object. So if the problem persists, I may need access to your site to do some debugging.

-- hugh
 
OK.
I will created an user to you and send to your email accounts.

But, It doesn't work OK - there is a white screen after "save" and emails are not to sended from "edit".

OK is only with filling in form data and store them in database table.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top