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
20
results
Andrew Fletcher
•
Updating to PHP 8.1, I found this interesting code stop...
Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in bales_preprocess() (line 162 of /var/www/{path/to/file})
What is trim(). Very simply, it removes whitespaces (if they exist) at the start or end of a string.
Andrew Fletcher
•
Creating a message log using Drupal watchdog.
Simple log
// Logs a...
Andrew Fletcher
•
A recent attempt to run an update composer (regular activity for many of...
Andrew Fletcher
•
I'm writing these steps primarily for myself as a reference. However, if...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The...
Andrew Fletcher
•
Attempting to load changes in a staging site and the bountiful error page of
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.Looking through the error log, I had two messages...
Andrew Fletcher
•
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI...
Andrew Fletcher
•
This page shows a growing list of common commands for viewing and managing your...
Andrew Fletcher
•
Whilst updating nodejs and npm on a Centos 6 or 7 server running Apache, I...
Andrew Fletcher
•
iOS localization on the fly
If you have added languages to your app......
Andrew Fletcher
•
Installing Laravel on an Apache server was going to be a no fuss process said no developer! Research done. Documentation looks good and easy to follow. Time to load Laravel.
The set-up
The install notes on Laravel are easy to follow. Beginning with checking that your server is able to install Laravel.
Using shell commands check that your server has the minimum requirements. To do this run the command php -m
-bash-4.1# php -m
[PHP...
Andrew Fletcher
•
Using shell access you the site you want to add the Spyc library. Then go...
Andrew Fletcher
•
Whatever you are coding - code clarity is your goal.
Before you scream and...
Andrew Fletcher
•
To create a .pem file, is quick once you have your .p12 certificate. I...
Andrew Fletcher
•
I had the issue where I needed to filter an array list by a specific column....