Home
About Me
Résumé
Portfolio
DevOps
C/C++
Drupal
Java
PHP
Ruby
Symfony
WordPress
Blog
Astronomy
Fitness
Photography
RDBMS
Technology
WWF
Pictures
Instagram
Galleries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
Contact
Search for:
Search Button
Home
About Me
Résumé
Portfolio
DevOps
C/C++
Drupal
Java
PHP
Ruby
Symfony
WordPress
Blog
Astronomy
Fitness
Photography
RDBMS
Technology
WWF
Pictures
Instagram
Galleries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
Contact
Search for:
Search Button
DevOps
Software Development
PHP
August 1, 2022
Table of Contents
PHP Software Practices and Principles
Why Have Code Conventions
Spaghetti Code
Single entry, Single exit Practice
My Update Cycle Recommendations
PHP Documentor
PHPUnit
Debugging
PHP 7.0 won’t let Apache 2.4 start
php -v gives warning messages
Warning – PHP Startup: Unable to load dynamic library ‘/usr/local/opt/php70-ssh2/ssh2.so’
root@puma-sky interferes with root@{{ DOMAIN_NAME }} when sending emails
simplexml_load_file() and curl_exec() does not work
PNG Images are not shown in PDF reports
PHP Fatal error: Uncaught Error: Class ‘phpseclib\Common\Functions\Strings’ not found
Installing PHPExcel with composer
Installing PHPMailer with composer
Emails won’t fire from root@puma-sky
Restarting PHP-FPM
mysqli_affected_rows() returns -1 but query works (NOT YET FOUND)
PHP Fatal error: Allowed memory size of 536,870,912 bytes exhausted
Error: No available formula with the name “php70-tidy”
Images are not showing in PDF documents in {{ HOST_NAME }}
PNG Images are not shown in PDF reports
PHP Fatal error: Uncaught Error: Call to undefined function PHPMailer\\PHPMailer\\filter_var()
phpDocumentor.ALERT: Fatal Error
PHP Fatal error: Call to undefined function http_redirect()
Installing Secure Shell for PHP
Installing Subversion for PHP
Warning: PHP Startup: mcrypt: Unable to initialize Module
PHP won’t load because dyld: Library not leaded: /usr/local/lib/libpng16.16.dylib
Insite CMS – PHP Warning: Cannot modify header information
PHP Warning: mysqli::__construct(): MySQL server has gone away
How to explicitly output contents of the PHP buffer
Dynamic Variables
Installing Node.js breaks down PHP 7.0
Apache NetBeans 9.0 truncates debug string variables
mPDF error: IMAGE Error
SSL routines:ssl3_get_server_certificate:certificate verify failed
PHP OPcode Caching
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
PHP Fatal error: Cannot redeclare start()
PHP Warning: copy(http://getcomposer.org/installer): failed to open stream: php_network_getaddresses: getaddrinfo failed
LAMP stack got screwed by brew upgrade
PHP does not get executed on web page; PHP code is displayed instead
Xdebug on PHP 7.2 does not work anymore.
Symbolic Links do not work
Unable to write to error_log
PHP Fatal error: Class ‘SelectQueryExtender’ not found in /var/www/html/public/includes/pager.inc on line 15
No check has been registered for access_check.permission
No connection from xdebug was detected
dyld: Library not loaded
Unable to use Xdebug in NetBeans
PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead
Smarty: unable to write file
Installing extensions
a. xdebug
b. amqp
c. redis
d. imagick
e. uploadprogress
f. apcu
g. libsodium
h. sqlsrv / pdo_sqlsrv
SQL Error:
PHP 7.4
Issues with phpexcel
Issues with https://schoolvisits.puma
Issues with http://15.222.244.86/info.php
Fatal error: Allowed memory size of 1610612736 bytes exhausted
SOAP-ERROR: Parsing WSDL
php_network_getaddresses: gethostbyname failed
PHP 8.0
MacOS Upgrade
Switching PHP on Apache
Switching PHP on .zshrc
Switching to PHP 7.4
Switching to PHP 8.0
Switching Final Steps
CentOS Upgrade
Debian Upgrade
PHP 7.4 – XDebug
WARNING: PHP is not recommended
SoapClient::__doRequest(): connect() failed: php_network_getaddresses: getaddrinfo failed:
failed to open dir: Too many open files
OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
DomCrawler\Crawler
/usr/bin/php deleted by mistake
XDebug not working
SQL Server
Solution for MacOS:
SQL Error:
Success Results :
Solution for CentOS:
Solution for Debian 11:
Solution for Debian 10:
Web forms anomaly
PHP 8.0 – Formulae found in multiple taps
PHP 8.0 – No package matching ‘php8.0’ is available
PHP 8.0 – PECL Install
Debian 11 – Unable to parse XSD from our BOS ISAPI
PHP 8.0 – XDebug
PHP 8.0 – XDebug (2)
Problem:
Solution for Netbeans:
Solution for VSCode:
PHP 8.0 – WordPress
PHP 8.0 – PHP Fatal error: The (unset) cast is no longer supported
PHP 8.0 – Path cannot be empty in fopen()
PHP 8.0 – Module “sodium” is already loaded in Unknown on line 0
PHP 8.0 – PHP Deprecated: Required parameter follows optional parameter
PHP 8.0 – mpdf not working
MPDF 8.x
MPDF 6.x
PHP 8.0 – phpexcel not working
Problem:
Solution:
Problem 2:
Solution 2:
Problem 3:
Solution 3:
Problem 4:
Solution 4:
Problem 5:
Solution 5:
Problem 6:
Solution 6:
Problem 7:
Solution 7:
Problem 8:
Solution 8:
PHP 8.0 – phpmailer not working
PHP 8.0 – phpseclib
PHP 8.0 – Fatal error: Uncaught Error: Call to undefined function money_format()
PHP 8.0 – array_key_exists(): Argument #2 ($array) must be of type array, SimpleXMLElement given in array_key_exists()
PHP 8.0 – Drush is not working
On MacOS
On Debian
On MacOS
On Debian
PHP 8.0 – Drupal is not working
Problem – Drupal is not working – fixed
Problem 2 – Unable to login – fixed
Problem 3 – Unable to reset password
Problem 4 – Unable to reset password (2) – fixed
Problem 5 – Unable to run crons
Uninstalling PHP
On MacOS
On CentOS
On Debian
PHP 8.0 – Fatal error: Array and string offset access syntax with curly braces is no longer supported
Session Timeouts
No releases available for package “pecl.php.net/X”
PHP Warning: Undefined array key “SERVER_NAME”
PHP Fatal error: Uncaught TypeError: ftp_nlist()
Images are not showing in PDF documents in events.puma (2)
PHP Fatal error: Maximum execution time of 30 seconds exceeded
Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress
PHP 8.0
Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated)
Installing Composer
On MacOS
On FreeBSD
On CentOS (as victord)
On Debian (as puma/victord)
Updating Composer
Updating packages installed by Composer
On CentOS
On MacOS
Using Composer
Updating software packages with composer
Composer is not working.
PHPExcel is abandoned
Composer Install vs Composer Update
Fatal error: Allowed memory size of 1610612736 bytes exhausted
Update multiple composer recipes at once
file could not be downloaded: php_network_getaddresses: getaddrinfo failed
devops
,
PHP
,
software development
Written By victord On August 1, 2022