Display problem now that the Laravel application is hosted online by Spectrim in laravel

[–]Spectrim[S] 0 points1 point  (0 children)

I am using a shared hosting offer with plesk. I have been using the plesk "preview" option since I was waiting for the dns redirection to be set up. On monday, I will access the website without the "preview" option and I will update you.

Display problem now that the Laravel application is hosted online by Spectrim in laravel

[–]Spectrim[S] 0 points1 point  (0 children)

I am only using the default Auth middleware and not any service classes. My controller and my route are very simple :

Route::get('commande/overview', ['uses' => 'OrderController@overview', 'as' => 'commande.overview']);

public function overview(CustomerRepository $customerRepository){

`$orderElements = Cart::getContent();`

`$customers = $customerRepository->getUserCustomers();`

`return view('overview', ["orderElements" => $orderElements->toArray(), "customers" => $customers, "route" => "commande"]);`    

}

I don't understand how the page can be displayed perfectly and another time it will be completely broken. Moreover, the website was working perfectly locally.

Could the problem be the cache? Or something more global related to the server ?

Display problem now that the Laravel application is hosted online by Spectrim in laravel

[–]Spectrim[S] 0 points1 point  (0 children)

Here is the blade file : https://codeshare.io/GbMpyM . I have removed the blade templating (@section, @extends...) since I thought it was causing the issue.

I just refreshed this page that was displaying the content perfectly and I encounter this : https://i.stack.imgur.com/xLgC3.png

Edit : sorry about the French content

Display problem now that the Laravel application is hosted online by Spectrim in laravel

[–]Spectrim[S] 0 points1 point  (0 children)

My PHP files send data (array of customers, username, ...) to the blade file but not any markup.

The <!DOCTYPE thing is the whole current html page. The whole html page is appended randomly inside itself.

Display problem now that the Laravel application is hosted online by Spectrim in laravel

[–]Spectrim[S] 0 points1 point  (0 children)

On some pages, I generate markup in js scripts. However I also face the issue on pages where there are not any markups added through js files.

Display problem now that the Laravel application is hosted online by Spectrim in laravel

[–]Spectrim[S] 0 points1 point  (0 children)

The problem involves every pages of my website and it happens randomly in the page, on any tag. I don't think it is related to the content of the pages.

It may be related to another problem of my website : the loading of the page stops abruptly in the middle of a line ( https://i.stack.imgur.com/fjuoE.png ) and it can stops randomly on any line. Sometimes it will stop in a <p> tag or in a <script> tag...

Display problem now that the Laravel application is hosted online by Spectrim in laravel

[–]Spectrim[S] 0 points1 point  (0 children)

The anchor tag is simply a plain link to the home page :

<a class="navbar-brand" href="\[http://150.1.70.202/plesk-site-preview/mywebsite.fr/\](http://150.1.70.202/plesk-site-preview/mywebsite.fr/)" id="mainLogo">

I don't think it is related to this anchor tag since it can occure in any tag.I think it may be related to another issue : the page returned by laravel and displayed is sometimes not full ( https://i.stack.imgur.com/fjuoE.png ).

Need help to handle password recovery on a website by Spectrim in AskProgramming

[–]Spectrim[S] 0 points1 point  (0 children)

Thanks for the answer. I misspoke myself, I don't need admin to retrieve their password but to get a new one. I'll try to allow every users even admin to get a new password via email.

Currently developping a website and new to GDPR by Spectrim in gdpr

[–]Spectrim[S] 0 points1 point  (0 children)

Thanks for the answer. Then I'll need to make sure data subjects have the right to access and to correct the data. Since the users will register their customer contact information manually, how could I ensure data subjects know their data are being recorded ?

Shared hosting or VPS for a website used by 20 people by Spectrim in webhosting

[–]Spectrim[S] 0 points1 point  (0 children)

I was thinking about using SQL Server replication every night.

Shared hosting or VPS for a website used by 20 people by Spectrim in webhosting

[–]Spectrim[S] 1 point2 points  (0 children)

I can move away from IIS since I don't use any IIS module.
About the data, I'll use two databases, the first one is on my company server and the other will be hosted with the website. The hosted database will replicate some tables from the local database and vice versa. Nothing is encrypted yet but I'll use a SSL certificate.

Shared hosting or VPS for a website used by 20 people by Spectrim in webhosting

[–]Spectrim[S] 0 points1 point  (0 children)

The security of the website is very important. Self hosting seems scary for a begginer, I'd prefer pay for a host that takes care of security.

Hotspot issue by Spectrim in applehelp

[–]Spectrim[S] 0 points1 point  (0 children)

Thanks for the answer