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.
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: php warning on all pages

  1. #1
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default php warning on all pages

    Getting this on all of my pages. Running the latest version.

    Warning: Invalid argument supplied for foreach() in /home/site/public_html/includes/vbenterprisetranslator_functions_hooks.php on line 734

  2. #2
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    Please give me a link to the issue. Please send me a PM access details to Admin CP and FTP. I will check what is going on there

  3. #3
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    I do not have access to FTP.

  4. #4
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    Quick fix for this issue:
    1. Open file includes/vbenterprisetranslator_functions_hooks.php
    2. Find:
      PHP Code:
      if($vbulletin->options['vbenterprisetranslator_alternate_tag']) 
    3. Replace it to:
      PHP Code:
      if($vbulletin->options['vbenterprisetranslator_alternate_tag'] && !$vbulletin->userinfo['userid']) 

    This quick fix will be added in the next release.

  5. #5
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    thanks, that worked.

  6. #6
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    I updated to the latest version of vBET. I had to re-apply this fix, however it is now showing on all guest pages no matter what.

  7. #7
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    I do not see the issue on your website.
    The latest version vBET is 4.7.2. Your version is 4.7.1. Have you done a downgrade?

  8. #8
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    Yes, I downgraded after I saw this, but it looks like it's happening in 4.7.1 as well. It's only happening when no translation providers are available (Google is marked as available in my case, but I don't have an API key entered for them). When this happens threads are also NOT being translated.

  9. #9
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    If you do not have a key Google then it should be automatically disabled. You manually turn off Google in AdminCP->vBET->Translation Providers Availability. Please let me know if Google turn on automatically in AdminCP->vBET->Translation Providers Availability.
    Please let me know if this resolves the issues.

  10. #10
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    Quote Originally Posted by Marcin Kalak View Post
    If you do not have a key Google then it should be automatically disabled. You manually turn off Google in AdminCP->vBET->Translation Providers Availability. Please let me know if Google turn on automatically in AdminCP->vBET->Translation Providers Availability.
    Please let me know if this resolves the issues.
    Actually, it appears that I was wrong. Even though Google is now staying off after setting it manually, the error still appears. However, it doesn't appear all the time. I can't find a pattern. Naturally it goes away when "Add alternate tag" is turned off.

Page 1 of 2 12 LastLast

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
  •