Kormi
Kormi
TCTwill CMS
Created by Kormi on 5/22/2024 in #👊support
Twill 2.12.4 localization problem with siteground
If i do this $prefix=LaravelLocalization::setLocale('en'); instead of $prefix='en'; 404 appears. it's like LaravelLocalization makes an error... but in logs files i don't find anything
9 replies
TCTwill CMS
Created by Kormi on 5/22/2024 in #👊support
Twill 2.12.4 localization problem with siteground
If i do THis $prefix = 'en'; $middleware = ['localize', 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'cache.headers']; instead of $locales = LaravelLocalization::getSupportedLocales(); $prefix = (count($locales) > 1) ? LaravelLocalization::setLocale() : ''; // cache.headers $locale_middleware = ['localeViewPath', 'cache.headers']; $middleware = (count($locales) > 1) ? ['localize', 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'cache.headers'] : $locale_middleware; In first case dump return "en" correctly and all works fine. In the second case dump doesn't appear and 404 appears Locally first and second case works, but I have the same configuration of server, same packages in vendors (composer), same db. @ifox do you have a solution, please?
9 replies
TCTwill CMS
Created by Kormi on 5/22/2024 in #👊support
Twill 2.12.4 localization problem with siteground
This is my .htaccess, But i don't think it's the problem SetEnv PHPRC ./current/php.ini <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule>
RewriteEngine on RewriteBase / RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www. [NC] RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC] RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$ RewriteCond %{REQUESTURI} !^/.well-known/acme-challenge/[0-9a-zA-Z-]+$ RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$ RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301] Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] ###### NON TOCCARE SE SI VUOLE CHE TUTTO FUNZIONI IN PROD / STAGING RewriteCond %{HTTP_HOST} ^www.mysite.com [NC] RewriteCond %{REQUEST_URI} !current/public RewriteRule (.) /current/public/$1 [L] RewriteCond %{HTTP_HOST} ^www.mysite.local [NC] RewriteCond %{REQUEST_URI} !/public RewriteRule ^(.)$ public/$1 [L] ###### NON TOCCARE SE SI VUOLE CHE TUTTO FUNZIONI IN PROD / STAGING Send Requests To Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]
9 replies
TCTwill CMS
Created by Kormi on 5/22/2024 in #👊support
Twill 2.12.4 localization problem with siteground
@Tom M im tring to debug... when i add a second supporteLocales in laravellocalization.php it seems don't enter in routes/web.php (i put some die('o') inside the code). Whene only I use a suppertedLocales (en) die appears how is it possible? Only in production machine? In my local machine everything is fine!
9 replies
TCTwill CMS
Created by Kormi on 5/22/2024 in #👊support
Twill 2.12.4 localization problem with siteground
I also add task('deploy:kormiartisan', function () { info('Artisan => cd {{release_path}} && {{bin/php}} artisan config:cache && {{bin/php}} artisan route:cache && {{bin/php}} artisan cache:clear'); run('cd {{release_path}} && {{bin/php}} artisan config:cache && {{bin/php}} artisan route:cache && {{bin/php}} artisan cache:clear'); }); to force it... But nothing change
9 replies
TCTwill CMS
Created by Kormi on 5/22/2024 in #👊support
Twill 2.12.4 localization problem with siteground
yes, i'm doiing deploy with deployer.
9 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
if i have an image 200x200 and set ->width(600) it broke it
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
i need the exact crop selected in backend
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
is there a way to set a max-width?
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
i don't understand how it set w=1000
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
i need the crop i select in backend 1640x510
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
$data['content_1_image'] = null; $content_1_image = $page ->imageObjects('content_1_image', 'default') ->map(function ($media) use ($page) { return @TwillImage::make($page, 'content_1_image', $media)->crop('default'); }) ->toArray(); foreach ($content_1_image as $k => $image) { if (isset($image['image']['src'])) { $data['content_1_image'] = $image['image']; break; } } This is how i get the image
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
i know
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Glide image width
I need to use this image with width 1640... but in frontend w is always "1000"
15 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Deploy with deployer and composer update
🤬
37 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Deploy with deployer and composer update
i pulling branch master instead of main
37 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Deploy with deployer and composer update
oh yes
37 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Deploy with deployer and composer update
No description
37 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Deploy with deployer and composer update
mmmm
37 replies
TCTwill CMS
Created by Kormi on 1/27/2023 in #👊support
Deploy with deployer and composer update
but it is laravel
37 replies