vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vB Global Translator - Multiply your indexed pages & put search traffic on autopilot (https://vborg.vbsupport.ru/showthread.php?t=217329)

NLP-er 06-28-2009 10:07 PM

Quote:

Originally Posted by GoTTi (Post 1839139)
testing this on a different site on a different server i am getting this error when i click the flags:

Fatal error: Call to undefined function mysql_set_charset() in /home/SITE/public_html/forum/translate.php on line 35

Wrong version of PHP. From manual about mysql_set_charset() This function requires MySQL 5.0.7 or later

Bounce 06-28-2009 10:09 PM

arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh lol :D

I've installed this (I THINK) as per the instructions, even created new database and sql user for it, on clicking a flag I get

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [path]/translate.php on line 148

then the database error,

Quote:

Invalid SQL:

UPDATE session
SET lastactivity = 1246230400, location = '/forum/?hl=ja', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0, useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)'
WHERE sessionhash = '726fe064a7efc501fc5f743000592a85';

MySQL Error : MySQL server has gone away
Must have fooked up the install somewhere but fooked if I can figure out where LOL

No data is being "written" into the database either, LOL the joys

NLP-er 06-28-2009 10:13 PM

Quote:

Originally Posted by GoTTi (Post 1839149)
wt_cache_medium
wt_cache_short

these 2 tables on the db have lines in it now. the short has 20 and the medium has 3. but the text still isnt converting over to other languages. this is on the site i sent u on the PM.

the other error i am having is on another site different server

For the first translation of some page to some language you have to be very patient. A lot of things to translate by google... And It is not possible to skip this time - it have to be translated. But after that having this page translated again to this language if very fast, because google isn’t asked for that anymore - just taken from DB.

Give it a chance and just wait till page is translated.

NLP-er 06-28-2009 10:17 PM

Quote:

Originally Posted by hIBEES (Post 1839158)
arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh lol :D

I've installed this (I THINK) as per the instructions, even created new database and sql user for it, on clicking a flag I get

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [path]/translate.php on line 148

then the database error,



Must have fooked up the install somewhere but fooked if I can figure out where LOL

No data is being "written" into the database either, LOL the joys

On line 148 there is no mysql_fetch_array() call - probably you have old version. Please update it :)

puertoblack2003 06-28-2009 10:18 PM

Quote:

Originally Posted by hIBEES (Post 1839158)
arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh lol :D

I've installed this (I THINK) as per the instructions, even created new database and sql user for it, on clicking a flag I get

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [path]/translate.php on line 148

then the database error,



Must have fooked up the install somewhere but fooked if I can figure out where LOL

No data is being "written" into the database either, LOL the joys



your issue is right here brotha
Code:

MySQL Error : MySQL server has gone away
timing out issue ...i clocked my to 60 second before it translate then after that it's quick

Dave Hybrid 06-28-2009 10:19 PM

Some large pages can take a few minutes, test it on pages will low text. It's not a big deal as the search bots will hit large pages a few times to translate them in the background. Next time the load from cache and are fast.

puertoblack2003 06-28-2009 10:30 PM

One more question i have a friend that is from Germany.The only thing he noticed that for each page you have to click on the flag.Is that how it works?

Dave Hybrid 06-28-2009 10:41 PM

Quote:

Originally Posted by puertoblack2003 (Post 1839175)
One more question i have a friend that is from Germany.The only thing he noticed that for each page you have to click on the flag.Is that how it works?

Yep, that is correct.

Bounce 06-28-2009 11:08 PM

Quote:

Originally Posted by NLP-er (Post 1839165)
On line 148 there is no mysql_fetch_array() call - probably you have old version. Please update it :)

thanks, think I did doh lol

weird now i'm getting the error..

Quote:

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'dbname_trans' (1) in [path]/translate.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in [path]/includes/functions.php(5721) : eval()'d code on line 5
but its translating the pages ....

http://www.hibeesbounce.com/forum/sh...?t=86933&hl=ja

Is it just a case of waiting or have I got something else wrong lol

yea I did LOL

$dbusername = "bdname";
$dbpassword = "me";
$mysqlserver = "localhost"; > had this as the db name pmsl :)
$dbname = "dbname";

THAT link now translates :):)

Still get myqsl server has gone away on forumhome thou, patience needed?

GoTTi 06-28-2009 11:10 PM

Quote:

Originally Posted by NLP-er (Post 1839157)
Wrong version of PHP. From manual about mysql_set_charset() This function requires MySQL 5.0.7 or later

PHP Version 5.1.4


??


All times are GMT. The time now is 01:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01333 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete