developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
121
results
Andrew Fletcher
•
On a git pull from remote dev environment to a staging environment running off AWS server... I was greeted with the white screen of death. While it took me a while to resolve the actual issue, my action plan was as follows:
How to resolve:
Look in your log files;
Add a few lines to your index.php file
Log files
If you have access via ssh they are usually located in /var/log. To quickly which files have been updated / altered recently, run the following command when...
Andrew Fletcher
•
I needed the check if a file existed in a directory as the migrate script wasn't...
Andrew Fletcher
•
Joining a new company / team there is always a lot of new items to...
Andrew Fletcher
•
A bug bear that I have had for a while with Drupal content is how come the...
Andrew Fletcher
•
Updating Drupal from 8.7.10 to 8.8.x or 8.9.x has seen a significant change...
Andrew Fletcher
•
As outlined in an earlier article composer php version, when installing the latest version of Drupal the Plesk version and the server version can be different. In plesk, the version of PHP is 7.3.18, whereas, on the Centos server a check through Terminal (php -v) shows PHP 7.1.33 (cli).
When attempting to install Drupal 9 through composer, the following errors will be shown:
Problem 1
- drupal/core-composer-scaffold 9.1.x-dev requires php >=7.3.0 -> your PHP version...
Andrew Fletcher
•
I had been running a few Centos 6 servers just past their EOL (30th November...
Andrew Fletcher
•
Regular expressions (regex) are extremely useful in extracting information from...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The...
Andrew Fletcher
•
Don't worry this is an issue that many Drupal developers have come across....
Andrew Fletcher
•
Working on a new CentOS 7 server, Node wasn't installed. You can quickly this through using the prompt node -v
node not foundIn Plesk, the extension had been installed, however this doesn't mean correctly. So I needed to install Node and npm on the CentOS 7 server.
Installing nodejs and npm
To get the curl for v14 go to https://github.com/nodesource/distributions#rpminstall and you'll see that the most suited is
# As root
curl -sL...
Andrew Fletcher
•
Using a Centos 6 or 7 server, how to check the current version of Apache?
httpd...
Andrew Fletcher
•
Attempting to load changes in a staging site and the bountiful error page...
Andrew Fletcher
•
Working through migration on a new Centos 7 server, the default mailbox size is...
Andrew Fletcher
•
Running a common composer command, post an upgrade on the server to Centos 7 and...