![]() |
Pager Error Invalid file: Pagers(slash)bs_full.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Pager Error Invalid file: Pagers(slash)bs_full.php (/showthread.php?tid=78662) |
RE: [SOLVED] Pager Error Invalid file: Pagers(slash)bs_full.php - Corsari - 02-23-2021 (02-23-2021, 12:49 AM)kenjis Wrote:(02-23-2021, 12:24 AM)Corsari Wrote: Maybe CodeIgniter exception feedback for these cases could be written somehow less cryptic or with a more explicit complainIt is true. I see Instead of "invalid file" could be "namespace path not found" Or even explicit "something in namespace /Pagers is wrong" in such a way that makes you think about a path and not a file (in this case) Though, "invalid" takes you on a wrong road , because the file itself works fine in another host RE: Pager Error Invalid file: Pagers(slash)bs_full.php - kenjis - 02-23-2021 Thank you for your idea. I still do not understand why in your local it worked. Probably you don't have Pagers namespace. RE: Pager Error Invalid file: Pagers(slash)bs_full.php - Corsari - 02-23-2021 (02-22-2021, 04:08 PM)kenjis Wrote: Try. (02-23-2021, 01:10 AM)kenjis Wrote: Thank you for your idea. Probably you don't have Pagers namespace. <--- hello! thank you for your kind help .. where do you mean it is missing that namespace? Just to check/fix it RE: Pager Error Invalid file: Pagers(slash)bs_full.php - InsiteFX - 02-23-2021 Your problem is this the bs_full.php is looking in the Pager folder but you have named it Pagers Make sure that the Pager file paths match the folder paths. Rename the Pagers folder to Pager and it should work. RE: Pager Error Invalid file: Pagers(slash)bs_full.php - Corsari - 02-23-2021 (02-23-2021, 02:10 AM)InsiteFX Wrote: Your problem is this the bs_full.php is looking in the Pager folder but you have named it Pagers hello InsiteFX I tried this to give you some feedback ("Make sure that the Pager file paths match the folder paths." <--- though it was anyway matching since Pagers was the directory and Pagers was written inside the Pager.php config file, anyway going on..) - renamed directory Pagers to Pager - changed Pager.php in \App\Config to this code: PHP Code: public $templates = [ same exception error, so at the moment I revert it back to Kenjis suggestion RE: Pager Error Invalid file: Pagers(slash)bs_full.php - kenjis - 02-23-2021 (02-23-2021, 01:26 AM)Corsari Wrote: Probably you don't have Pagers namespace. <--- hello! thank you for your kind help .. where do you mean it is missing that namespace? I don't mean you missed namespace setting. I mean it is strange that you don't set the namespace but it works on your local. First of all, a view file is not a class file. So it is not PHP's real namespace. But CI4 provides as if it is namespaced. See https://codeigniter4.github.io/CodeIgniter4/outgoing/views.html#namespaced-views And the default app namespace is `App`, and its directory is app. So if you have app/Views/Pagers/bs_full.php, it is stated as `App\Views\Pagers\bs_full`. If you want to write `Pagers\bs_full`, you also have to set the namespace `Pagers`. And in that case, probably you want to have Pagers module. If you really want to set namespace, see https://codeigniter4.github.io/CodeIgniter4/general/modules.html#namespaces RE: Pager Error Invalid file: Pagers(slash)bs_full.php - evo_king99 - 04-25-2021 (02-22-2021, 04:08 PM)kenjis Wrote: Try.where is i can put this? im still new here and i had this problem over a week RE: Pager Error Invalid file: Pagers(slash)bs_full.php - InsiteFX - 04-26-2021 (04-25-2021, 12:10 AM)evo_king99 Wrote:(02-22-2021, 04:08 PM)kenjis Wrote: Try.where is i can put this? im still new here and i had this problem over a week You can find the Tutorial I created here. Tutorial for creating custom Bootstrap 4 pagers and page numbers RE: Pager Error Invalid file: Pagers(slash)bs_full.php - PwrSrg - 09-07-2021 I am running into a VERY SIMILAR (same?) issue. I spent the last day debugging the hell out of this, and am starting to think it is a PERMISSIONS issue. Issue: NEW Ci4 Application works perfectly on local drive, but NOT on mapped NAS drive. Environment:
Steps to reproduce: Local Drive
NAS Drive
Code: PHP Fatal error: Uncaught InvalidArgumentException: The .env file is not readable: D:\www\project\.env in D:\www\project\vendor\codeigniter4\framework\system\Config\DotEnv.php:60 Any thoughts and suggestions would be greatly appreciated. Thanks! RE: Pager Error Invalid file: Pagers(slash)bs_full.php - InsiteFX - 09-08-2021 Please check your PHP version, PHP version 7.3 or newer is required. |