Page 1 of 1

last update: Warning: str_replace() expects at least 3 param

PostPosted: Sat Apr 28, 2018 4:16 pm
by info@.....nl
hi there
we have updated a client's site: http://www.arph.nl/
and within the order proces, following error can be see:
Warning: str_replace() expects at least 3 parameters, 2 given in /home/users/arphnftp/arph.nl/components/com_onepage/helpers/userfields.php on line 905

can you advise?
thx

Re: last update: Warning: str_replace() expects at least 3 param

PostPosted: Tue May 01, 2018 2:54 pm
by info@.....nl
no solution? :(

i noticed at the END of the page, where the previous (still exhising) error is displayed, the following message can be seen also:

Deprecated: Non-static method OPCmini::printDebugMsgs() should not be called statically in /home/users/arphnftp/arph.nl/components/com_onepage/overrides/virtuemart.cart.view.html.php on line 749

Re: last update: Warning: str_replace() expects at least 3 param

PostPosted: Tue May 01, 2018 11:40 pm
by pwidner
I am also getting this. What needs to be done to fix? Warning: str_replace() expects at least 3 parameters, 2 given in /home/xxx/public_html/components/com_onepage/helpers/userfields.php on line 905

Re: last update: Warning: str_replace() expects at least 3 param

PostPosted: Tue May 01, 2018 11:47 pm
by pwidner
I reverted back to previous version 2.0.353 and error is now gone.

Re: last update: Warning: str_replace() expects at least 3 param

PostPosted: Thu May 03, 2018 1:42 pm
by admin
hello, i apologize for late response here in forum, i was stuck with working on sherpaan.nl stock system within OPC.

the userfields.php notice is fixed in already release 2.0.361 version.

the deprecated notice will be fixed in 362 version.

i will re-run OPC in full error reporting code for 362 version so there are no deprecated or other notices. our current development error reporting would not allow us to use full error reporting since both virtuemart and joomla gave too many notices by default.

generally we suggest to disable error reporting completely on production sites and once upon a while use our fatal catcher to find out any hidden issues (especially for fatal errors which are the most critical)

best regards, stan, rupostel.com