arabnewscms / it

Unleash your imagination and be creative
https://it.phpanonymous.com
MIT License
195 stars 63 forks source link

Admin login and register forms not working on server #7

Closed Nesma-Hamdy closed 3 years ago

Nesma-Hamdy commented 3 years ago

I have installed It package locally and it is working fine but after uploading the files to the host login and register forms didn't work it keeps resulting the error 419 Page Expired I have changed the permissions for storage and bootstrap cache but with no luck and the language links always redirects me to the default language (ar) it didn't work either. is there any configs missing ? I have set the APP_URL and ASSET_URL in the .env file

arabnewscms commented 3 years ago

laravel session not persisting in public/index.php add this on first line ob_start(); session_start();

<?php
ob_start();
session_start();

use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

... your host maybe not initialize session driver
go to storage/session delete all files on this folder and test your application again tell me if you facing same error again

Nesma-Hamdy commented 3 years ago

It's working now, thanks a lot

arabnewscms commented 3 years ago

good job have a nice day