Welcome Guest, Not a member yet? Register   Sign In
CI4 Problem ViewException when upload to shared hosting
#1

Hi, 
i am newbie with ci4, when i upload to shared hosting i got an error like this,

CodeIgniter\View\Exceptions\ViewException

SYSTEMPATH/Exceptions/FrameworkException.php at line 21


PHP Code:
14     public static function forEnabledZlibOutputCompression()
15     {
16         return new static(lang('Core.enabledZlibOutputCompression'));
17     }
18 
19     
public static function forInvalidFile(string $path)
20     {
21         return new static(lang('Core.invalidFile', [$path]));
22     }
23 
24     
public static function forCopyError(string $path)
25     {
26         return new static(lang('Core.copyError', [$path]));
27     



whats the problem ?

i use PHP 7.3 version with cpanel, thanks for your help Smile
Reply
#2

Can't you provide the error message?
My first guess would be the view filename does not match what you have in your code when you try to load it. The lower/upper case letters must be the same. If you test on Windows but you host your site on Linux, you can have this kind of error.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3

(01-04-2021, 05:39 AM)includebeer Wrote: Can't you provide the error message?
My first guess would be the view filename does not match what you have in your code when you try to load it. The lower/upper case letters must be the same. If you test on Windows but you host your site on Linux, you can have this kind of error.
 Thanks my friends, you guess is right Smile
Reply
#4

Happens to me in cases where I sometimes confuse uppercase / lowercase letters in view filenames - works on local computer where apache ignores the case, but Linux certainly does not on the server.

CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5)

Reply




Theme © iAndrew 2016 - Forum software by © MyBB