why Whoops! error showing in codeigniter-4 - codeigniter-4

i just copy codeingiter 4 in my XAMPP for Linux 7.4.3 which have PHP Version 7.4.3
but getting error like
Whoops!
We seem to have hit a snag. Please try again later...

Rename the env file as .env, then remove # from CI_ENVIRONMENT and modify
CI_ENVIRONMENT = production
into
CI_ENVIRONMENT = development

By Defaults CI 4 comes with production platform so it not showing the errors on the frontend. To see the errors, Open .htaccess file from the root and then enter
SetEnv CI_ENVIRONMENT development
it change the environment to development
the alternate way open .env file and then change the CI_ENVIRONMENT to development like that
CI_ENVIRONMENT = development
Remember don't forget to remove # from the begining

Pleaase try to install using composer
go to htdocs folder
composer create-project codeigniter4/appstarter project-root -s rc
replace project-root by your project folder name
and then
cd your_project_name

In Codeigniter 4 source code have a folder named
writable
, just update it's access permission. Sometimes it'll help to get rid of Whoops. Also can check the video for Ubuntu / Linux

CodeIgniter starts up in production mode. This is a safety feature to keep your site a bit more secure in case settings are messed up once it is live. So first let’s fix that. Copy or rename the env file to .env. Open it up. Uncomment the line with CI_ENVIRONMENT on it, and change production to development:
CI_ENVIRONMENT = development
If you are using XAMPP, write extension = intl in the PHP file (php.ini).

Related

How do I create a new project in Neos CMS?

I recently turned a computer into a Ubuntu server. I have installed all dependencies following the article below http://neos.readthedocs.io/en/stable/GettingStarted/Installation.html
My version of Ubuntu (or Apache) did not have a "htdocs" folder like the previous article suggested, so I created a folder called newsletter in var/www/html per this article https://askubuntu.com/questions/683953/where-is-apache-web-root-directory-on-ubuntu
Then I try to complete step 2 of "Fundamental Instruction" by using the following code
cd /your/htdocs/
php /path/to/composer.phar create-project neos/neos-base-distribution Neos
but it does not work.
Instead of inputting "cd /your/htdocs" I navigate to /var/www/html
I am getting "Could not open input file: /path/to/composer.phar"
I believe I already have composer installed, so I don't really want to have to go through https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-16-04
Should I change "/path/to/composer.phar"? Has the location changed?
It look like your composer is not in the given path /path/to/composer.phar
composer is not included in a bare bone Ubuntu, so you should have to follow the setup. If you want to test Neos, check https://bitnami.com/stack/neos
Should I change "/path/to/composer.phar"? Has the location changed?
This path is just an example.

whmcs cron not running says ioncube not installed

ioncube is installed on my server, this can be verified at http://www.webhostingmumbai.co.in/phpinfo.php
but when i run the cron at webhostingmumbai.co.in/manage/crons/cron.php , it gives me the following error:
Site error: the file /nfs/c04/h03/mnt/60142/domains/webhostingmumbai.co.in/html/manage/crons/cron.php requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.
in php.ini the ioncube installation has been mentioned at webhostingmumbai.co.in/ioncube/...
can someone help me what what needs to be done to make the cron work?
The php.ini file at /nfs/c04/h03/mnt/60142/etc/php.ini is the one being used by default. The server uses CGI, so a php.ini file found in the same location as the first page of a request may take precedence. See if you have php.ini files anywhere within your hosting area and ensure that the Loader is reference in each one just in case.
Kindly try to run following command via SSH to check which php.ini files are loaded on your server
php -i | grep -i 'php.ini'
and be sure that you add ioncube zend_extension path to all files which you get listed by this command.
Also check whether full path to whmcs installation directory is set or not in cron config.php
goto
whmcsfolder/crons/
you will see config.php file , add the complete path to whmcs installation directory like
$whmcspath = '/var/www/html/clientarea/';
where clientarea is whmcs root directory.
This will definitely help you.

Android studio path error

I'm getting this error:
Config path'C:\Program Files(x86)\Android\android-studio\config' is invalid.
If you have modified the 'idea.config.path' property please make sure it is correct,
otherwise please re-install the IDE.
I even re-installed the IDE, however, it doesn't work!
How to resolve this error?
Open this file C:\Program Files (x86)\Android\android-studio\bin\idea.properties.
You will see something like this
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
#idea.config.path=${user.home}/.AndroidStudioPreview/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
#idea.system.path=${user.home}/.AndroidStudioPreview/system
....etc
remove the # sign from those specific options and save it.
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.config.path=${user.home}/.AndroidStudioPreview/config
....etc
restart the android-stuido again.
Run as administrator. The default locations for \config and \system are under c:\Program Files, which Windows won't let common software write to. Karu's solution moves the \config and \system folders to the current users directory, which is fair-er game.
I try not to run software as Administrator unless it's really necessary and in this case it's not.
Do as #karu says, but go ahead and uncomment the top 4 paths in the idea.properties file to stop the next error that you would get about an invalid System path and so on...
C:\Program Files (x86)\Android\android-studio\bin\idea.properties
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.config.path=${user.home}/.AndroidStudioPreview/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.system.path=${user.home}/.AndroidStudioPreview/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.plugins.path=${user.home}/.AndroidStudioPreview/config/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=${user.home}/.AndroidStudioPreview/system/log
Save this file and restart Android Studio and you should have no more errors.
Note: I imagine that they will solve this issue in future versions but this is part of the fun you get for joining in on a project still in Beta (currently v0.2)
uncomment the idea.config.path and what ever the options available in the C:\Program Files (x86)\Android\android-studio\bin\idea.properties file
I had this issue, just wait 5 minutes and it will start properly.
I had this issue and the reason for my issue was my hard disk has run out of free space (installing new android versions had filled up my hard disk without me knowing :) ) . cleaning up the hard and getting some free space fixed my issue
My Problem was that my laptop storage was full, once the space was freed, this error got resolved.
Just run Android Studio as administrator .......
Uninstall Android Studio and reinstall using the default settings (install for the current user only).
Android Studio is only half baked, and support for sharing an installation across multiple users is among the features that are still in the oven.
Note: To work around another bug with multi-user installation, you have to "help" the uninstaller by manually deleting C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio. Otherwise, after the reinstall, you'll have two sets of Start Menu icons.
Just Run it as Administrator
issue was about permissions
Worked for me :)
After deleting the temp file I solved the same problem.
Just go to Run, type "%temp%", hit enter, and delete all the files under the Temp directory.
Configure your shortcut (Advanced options) to run always as administrator , you 'll save some seconds each time.
I searched for different ways to fix this issue with android studio, and I've found the solution.
My problem was that Windows Accounts Manager locked my profile folder to do anything, just change permissions to that folder and it will work
Just do this in your profile folder and select your user
After this, run Android Studio, and voila! Hope this help!

HTML5 Boilerplate Build Script - .htaccess doesn't exist

I thought I'd try out the Build Script for HTML5 Boilerplate - it's aimed at front-end designers and developers so this should be fairly straightforward right?
I'm running with a Mac so I should have all I need according to Paul.
Tried it on a blank project and immediately hit a brick wall.
I ran the cd build command, pointing it to my local folder
Then I ran ant build. It seemed to go OK, with a load of jibberish about how it was Building a Production environment but got stuck when looking for the htaccess file...
BUILD FAILED
/Users/jaygeorge/Dropbox/Websites/Clients/HTML-Sandbox/build/build.xml:137:
The following error occurred while
executing this line:
/Users/jaygeorge/Dropbox/Websites/Clients/HTML-Sandbox/build/build.xml:673:
Replace: source file
/Users/jaygeorge/Dropbox/Websites/Clients/HTML-Sandbox/publish/.htaccess
doesn't exist
Well of course the .htaccess file doesn't exist because it didn't come with the Boilerplate download. Do I need to download the htaccess file from my website so that it sits locally? I don't really understand this stuff - Was hoping Paul Irish would make his instructions more comprehensive :-(.
There should be an .htaccess file in the root folder of the ZIP file you downloaded. Note that you may have to turn on 'view hidden files' or similar in your File Explorer to see it.
Try to make empty .htaccess file and copy/paste code from: http://html5boilerplate.com/

Edit php.ini with .htaccess

I'm slowly getting back into PHP, and now I run into a problem, I want to install some web software on our host and I need to have either the latest Zend (which they don't have) or IonCube on the server and IonCube requires enable_dl to be on in the php.ini. Now a colleague of mine thinks I can update this via an .htaccess file on the server. So I created a s.htaccess on my machine as Windows doesn't like emptiness before the file extension. So I added the line php_flag enable_dl On to the file uploaded it and renamed the file to just .htaccess on the server. When I refresh the file is gone, when I keep it as s.htaccess it's fine but my php info still shows it as Off.
What n00b mistake am I making?
The documentation says that this can only be set in the php.ini (not in .htaccess). You can see this by looking at the table where it says "PHP_INI_SYSTEM", which means - "Entry can be set in php.ini or httpd.conf".
Unix way to hide files is prepending it with a dot. The file is there, but it's just hidden. Your ftp-software should have a setting for showing hidden files. IIRC you can rename the file to .htaccess through cmd in windows. The .htaccess only has effect in the current dir and sub directories. This might also be (because of security) one of those settings that is only setable through php.ini

Resources