Page 1 of 2

Auto Country Block

Posted: Wed Aug 24, 2022 6:49 am
by Andrew1
Приветствую!

У меня на одном из новых сайтов с этой опцией какая-то странная вещь происходит :(
Возникло ощущение, что оно совсем не работает (ни у одного из трейдеров нет заблокированных стран, хотя должно быть), полез в сж.лог, а там вот такое:
2022-08-23 14:59 Check Auto Country Block (0.19859504699707, 0.00025105476379395)
2022-08-23 14:59 Country block: trader.com country:CN trader percent: less than 1 (0.20168399810791, 0.0030889511108398)
2022-08-23 14:59 Country block: Can not find trader? (0.20186614990234, 0.00018215179443359)
2022-08-23 14:59 Country block: trader.com country:BD trader percent: less than 1 (0.20189213752747, 2.598762512207E-5)
2022-08-23 14:59 Country block: Can not find trader? (0.20201992988586, 0.00012779235839844)
2022-08-23 14:59 Country block: trader.com country:PK trader percent: less than 1 (0.20204305648804, 2.3126602172852E-5)
2022-08-23 14:59 Country block: Can not find trader? (0.20216107368469, 0.00011801719665527)
2022-08-23 14:59 Country block: trader1.net country:CN trader percent: less than 1 (0.20218896865845, 2.7894973754883E-5)
2022-08-23 14:59 Country block: Can not find trader? (0.20230603218079, 0.00011706352233887)
2022-08-23 14:59 Country block: trader1.net country:TR trader percent: less than 1 (0.20232796669006, 2.1934509277344E-5)
2022-08-23 14:59 Country block: Can not find trader? (0.20245003700256, 0.0001220703125)
и тд по остальным трейдерам...
Чтобы это могло быть и куда копать?
На других сайтах вроде все ок работает...

Re: Auto Country Block

Posted: Wed Aug 24, 2022 6:54 am
by admin
апдейты для начала?

Re: Auto Country Block

Posted: Wed Aug 24, 2022 7:13 am
by Andrew1
вчера делал после того, как увидел это в логе в первый раз...

Re: Auto Country Block

Posted: Wed Aug 24, 2022 7:25 am
by admin
добавил доп проверку
сделайте плз ап
если будет такая же проблема опять - скиньте плз админку

Re: Auto Country Block

Posted: Wed Aug 24, 2022 3:09 pm
by Andrew1
после апдейта "с доп проверкой" все заработало, спасибо!

Re: Auto Country Block

Posted: Wed Aug 24, 2022 3:32 pm
by Andrew1
еще после апдейта в варнингах вот такое появилось, это Ваша работа или мне пора волноваться? :)
includes/libs/vendor/ausi is not a part of SCJ. Check it manually
includes/libs/vendor/maxmind/web-service-common/phpstan.neon is not a part of SCJ. Check it manually
includes/libs/vendor/maxmind-db/reader/ext/config.w32 is not a part of SCJ. Check it manually
includes/libs/vendor/maxmind-db/reader/package.xml is not a part of SCJ. Check it manually

Re: Auto Country Block

Posted: Wed Aug 24, 2022 3:54 pm
by admin
проведите ап и будет ок)

Re: Auto Country Block

Posted: Wed Aug 24, 2022 4:06 pm
by Andrew1
не будет :(
Update 1 (2.6474268436432, 2.6474268436432)
Updating settings (3.790421962738, 1.1429951190948)
Updating DB fields (3.7961068153381, 0.0056848526000977)
Updating DB indexes (3.7969238758087, 0.00081706047058105)
Updating rotation rating (3.7981929779053, 0.0012691020965576)
Updating stats indexes (3.8013308048248, 0.0031378269195557)
Checking fields (3.8150470256805, 0.013716220855713)
Check gallery dates (3.8217580318451, 0.0067110061645508)
Updating countries table (3.8303558826447, 0.0085978507995605)
Adding extra thumb field into rot_thumbs
Updating stat indexes (4.9685578346252, 1.1382019519806)
Checking if folders exist (4.9860990047455, 0.017541170120239)
Download files (4.9864258766174, 0.00032687187194824)
Downloading files (17): (4.9878108501434, 0.001384973526001)
6% downloaded Can not create ../includes/libs/vendor/ausi/slug-generator Press any key to continue...

оно еще и видео импорт теперь не дает, кстати :(
Fatal error: Uncaught Error: Class 'Ausi\SlugGenerator\SlugGenerator' not found in /home/andrew/web/mydomain.com/public_html/engine2/includes/libs/rot_functions.php:2327 Stack trace: #0 /home/andrew/web/mydomain.com/public_html/engine2/includes/libs/rot_functions.php(1910): gallery_create_slug(Array, 1) #1 /home/andrew/web/mydomain.com/public_html/engine2/includes/libs/rot_functions.php(1384): AddGallery(Array, Array) #2 /home/andrew/web/mydomain.com/public_html/engine2/admin/files/rot_import.php(148): rotation_import('https://content...', Array, '|', Array) #3 /home/andrew/web/mydomain.com/public_html/engine2/admin/index.php(329): unknown() #4 {main} thrown in /home/andrew/web/mydomain.com/public_html/engine2/includes/libs/rot_functions.php on line 2327

Re: Auto Country Block

Posted: Wed Aug 24, 2022 5:42 pm
by admin
ошибка потому что не смогло создать файл

/includes/libs/vendor/ausi/slug-generator

существует?

Re: Auto Country Block

Posted: Wed Aug 24, 2022 6:40 pm
by Andrew1
существует, но меня туда обычным юзером не захотело пускать почему-то, только рутом...