Edit filename: core/Common.php, line number: 257
Before
return $_config[0] =& $config;
After
$_config[0] =& $config; return $_config[0];
Update
Added by NikiC
In PHP assignment expressions always return the assigned value. So $_config[0] =& $config returns $config – but not the variable itself, but a copy of its value. And returning a reference to a temporary value wouldn’t be particularly useful (changing it wouldn’t do anything).
Update
This fix has been merged into CI 2.2.1 (https://github.com/bcit-ci/CodeIgniter/commit/69b02d0f0bc46e914bed1604cfbd9bf74286b2e3). It’s better to upgrade rather than modifying core framework files.
Related Posts:
- How to prevent the “Confirm Form Resubmission” dialog?
- What is a slug?
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- How do I resolve a HTTP 414 “Request URI too long” error?
- Getting an error when I visit http://localhost
- Redirect vs RedirectMatch
- What does __FILE__ mean?
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- What is Options +FollowSymLinks?
- SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- CodeIgniter removing index.php from url
- file_get_contents( ) not working
- XAMPP, using port:81, cannot run localhost:81/mywebsite
- “End of script output before headers” in Apache + PHP
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- How can I force users to access my page over HTTPS instead of HTTP?
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Using PHP 7 with WAMP
- How to remove index.php from WordPress site URL
- Object of class stdClass could not be converted to string
- Replace ' and similar html codes with their correspondent character?
- navigate back with PHP form submission
- How to fix “Headers already sent” error in PHP
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- How do I get PHP errors to display?
- Get the full URL in PHP
- How do I check if a string contains a specific word?
- How to force file download with PHP
- How to Set Category Page as Home Page in Prestashop
- Get the full URL in PHP
- How to copy a file from one directory to another using PHP?
- PHP random string generator
- What are the differences in die() and exit() in PHP?
- Error 500: Premature end of script headers
- Cookies vs. sessions
- Expected status code 200 but received 500
- Whats the point of running Laravel with the command ‘php artisan serve’?
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- PDO with INSERT INTO through prepared statements
- Can you “compile” PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?
- Invalid argument supplied for foreach()
- Remove the last character from a string
- How to prevent Browser cache for php site
- what does a .php?id=&value=value means?
- Setting up a PHP interpreter in PhpStorm
- Get Current URL in Magento and show something
- Creating a search form in PHP to search a database?
- How do I make a simple crawler in PHP?
- Weird PHP error: ‘Can’t use function return value in write context’
- Create PDF file using PHP
- How do I get a YouTube video thumbnail from the YouTube API?
- Enable PHP Apache2
- How to call function of one php file from another php file and pass parameters to it?
- SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
- Is it possible to run .php files on my local computer?
- Php include not working? function not being included
- PHP mail function doesn’t complete sending of e-mail
- Convert php array to Javascript
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user ‘pma’@’localhost’ (using password: NO)
- Xampp Access Forbidden php
- SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 102
- File attachment with PHPMailer
- Warning: mysqli_query() expects parameter 1 to be mysqli, resource given
- Fatal error: Call to undefined function money_format()
- Apache is downloading php files instead of displaying them
- What is the MM/DD/YYYY regular expression and how do I use it in php?
- Warning “Do not Access Superglobal $_POST Array Directly” on Netbeans 7.4 for PHP
- How to integrate WordPress with Angular 8 for website?
- Fatal error: Maximum execution time of 30 seconds exceeded
- cURL request in Laravel
- PHP array printing using a loop
- How to send to BCC address when using PHPMailer to format MIME message for Gmail API?
- Is there any way to test PHP locally without installing a server?
- PHP Redirect with POST data
- Getting the screen resolution using PHP
- PHP: fopen() Permission denied
- How should I be setting browscap.ini file
- Returning JSON from a PHP Script
- How to run a PHP function from an HTML form?
- Site does not exist error for a2ensite
- Can I store images in MySQL
- MySQL Daemon Failed to Start – centos 6
- How to insert TIMESTAMP into my MySQL table?
- How to generate .json file with PHP?
- Call to a member function on a non-object [duplicate]
- Generate PDF from HTML PHP
- Call to a member function fetch_assoc() on boolean in
[duplicate] - How to use Memcached with PHP7?
- Remove empty array elements
- select count(*) from table of mysql in php
- Auto increment in phpmyadmin
- Redirect old php link to wordpress link in .htaccess
- wp-admin/index.php gives a “500 Internal Server Error [closed]
- Apache /Ubuntu server not running WordPress installation, outputting PHP code like HTML
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?