• Register
0 votes
23 views

Problem :

I have recently upgraded my PHP on Apache. Before upgrading everything was good. But after I upgraded my server PHP I am regularly facing the below error with my latest PHP Version 5.6.2 on Apache 2.0.

A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

What could have caused the above error? How can I fix this error?

8 4 2
2,300 points

1 Answer

0 votes

Solution :

I was going through some of the posts on this forum and I came across your error.

I can suggest you that please do not override a core.common file of the codeigniter. As that file is already used by many people and already tested by them also the system files.

So I researched on it a lot and made the solution for your above error. Go to your ckeditor_helper.php file and look at the code at line- 65

if($k !== end (array_keys($data['config']))) {
       $return .= ",";
}

You need to change above code to the below code

$segment = array_keys($data['config']);
    if($k !== end($segment)) {
           $return .= ",";
    }

According to me it is the best possible solution on your error and it will help you to remove your problem notice.

5 2 1
4,980 points

Related questions

0 votes
1 answer 8 views
8 views
This issue appears in the server after i upgrading PHP and also i am obtaining the following error with PHP Version 5.6.2 on Apache 2.0. Why this is happening in my case and how to solve it.
asked Sep 14 Daniel Anderson 4k points
0 votes
1 answer 148 views
148 views
Problem : I am having trouble with my website. It has been slowed down a little in last couple of days. I have carefully looked into my error log & found a lots of following logs: [Sat Nov 30 00:09:53 2019] [error] [client 66.249.66.205] Request ... core.c(3126): [client 66.249.66.205] redirected from r->uri = /images/2019/02/600x376_0.076827001313237200_pixnaz_ir_1.jpg How to solve this issue?
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 15 views
15 views
Problem: I am currently working on getting the HTML-based recursive directory listing based on the PHP code. My PHP code runs fine but it throws few errors: Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\directory5.php on line 34 Strict Standards: Only ... "".str_replace("\\", "/",     $directory)."/$value\">".$displayName($fileName, $extension)."</a></li>\n";  }
asked Jul 31 Raphael Pacheco 4.9k points
0 votes
1 answer 11 views
11 views
I am beginner on CodeIgniter, and while i go on run into problems that, defining global variable in codeigniter controller.
asked Sep 26 Daniel Anderson 4k points
0 votes
1 answer 271 views
271 views
Problem : I am new to CodeIgniter. The Codeigniter is raising issues about my registration model that it is sending header information before anything else. I thought that the models are there only for holding the database queries methods and nothing more. ... error I am trying to run my php CodeIgniter project. &ldquo;Cannot modify header information - headers already sent by codeigniter&rdquo;
asked Feb 26 mphil 2.3k points