Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 8 of 8

Thread: PHP Warning: preg_replace_callback(): Requires argument 2, 'vbet_createURLForAddressNoReplaceHref', includes/vbenterprisetranslator_functions.php on line 222

  1. #1
    Junior Member
    Join Date
    Jul 2018
    Posts
    8

    Default PHP Warning: preg_replace_callback(): Requires argument 2, 'vbet_createURLForAddressNoReplaceHref', includes/vbenterprisetranslator_functions.php on line 222

    Code:
    PHP Warning: preg_replace_callback(): Requires argument 2, 'vbet_createURLForAddressNoReplaceHref', to be a valid callback in ..../includes/vbenterprisetranslator_functions.php on line 222

    second error:


    when you translate to any language the users online vanish:

    https://gyazo.com/fc645acdda225e65bc648469b29b1f96


    I think that are the only two bugs that remain to be fixed for a working product on a live user board.

    i'm using your new release.
    Last edited by Matt; 25-07-18 at 10:19.

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Thanks, we forgot to add one thing. This will be corrected in nect release.

    For quick fix please:
    1. Open file includes\vventerprisetranslator_functions.php
    2. Find:
      Code:
      function vbet_createURLForAddressNoReplace($language, $address) {
    3. Paste BEFORE it:
      Code:
      function vbet_createURLForAddressNoReplaceHref($what) {
      	return 'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
      }


    Please let us know does it fix your issue.

  3. #3
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    No answer - we assume, that the issue is gone.

  4. #4
    Junior Member
    Join Date
    Jul 2018
    Posts
    8

    Default

    Hey sorry, I was on a trip for 10 days.

    I've applied your edit and it didn't change anything.

    still have same error: PHP Warning: preg_replace_callback(): Requires argument 2, 'vbet_createURLForAddressNoReplaceHref', to be a valid callback in ..../includes/vbenterprisetranslator_functions.php on line 222


    also username online is still hidden when translate.

  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    We are moving our server right now, so first we must finish it, then we will handle the issue. We will contact you soon.
    Meantime you can try to install newest release - there is the very same change, but maybe you set something wrong.

  6. #6
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    To make it easier for you we will solve the issue on your side. Please PM me access details to your FTP and Admin CP (for security reasons we recommend to send us temporary passwords or accounts).

  7. #7
    Junior Member
    Join Date
    Jul 2018
    Posts
    8

    Default

    Quote Originally Posted by vBET View Post
    To make it easier for you we will solve the issue on your side. Please PM me access details to your FTP and Admin CP (for security reasons we recommend to send us temporary passwords or accounts).
    I've done that now sir! Thank you!

    It are two bugs.

  8. #8
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    As I see you didn't fallow exactly our quick fix instructions and paste the code nit BEFORE but AFTER code in point 3. That is why it didn't work for you. I fixed it for you, by sending by FTP file from last release. Not it is working as I see.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •