Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phalcon\Debug - Notice: Array to string conversion in Unknown on line 0 #1683

Closed
tilleps opened this issue Dec 13, 2013 · 11 comments
Closed

Comments

@tilleps
Copy link

tilleps commented Dec 13, 2013

Getting the following error when using Phalcon\Debug:
Notice: Array to string conversion in Unknown on line 0

<?php
error_reporting(E_ALL);

$debug = new \Phalcon\Debug();
$debug->listen();

throw new \Exception();
@dreamsxin
Copy link
Contributor

What is your full request, parameter is an array?
I test in phalcon 1.3.0 it's ok.

http://localhost/index?a[]=1&a[]=2

<?php
error_reporting(E_ALL);

$debug = new \Phalcon\Debug();
$debug->listen();

throw new \Exception();

@ghost
Copy link

ghost commented Dec 14, 2013

Try running from command line.

$ php test.php 
PHP Notice:  Array to string conversion in Unknown on line 0

Notice: Array to string conversion in Unknown on line 0
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Exception: </title>...

@dreamsxin
Copy link
Contributor

:( Oh, level is Notice

This was referenced Dec 17, 2013
phalcon pushed a commit that referenced this issue Dec 19, 2013
@ghost
Copy link

ghost commented Dec 20, 2013

Guess this can be closed now?

phalcon pushed a commit that referenced this issue Dec 23, 2013
phalcon pushed a commit that referenced this issue Dec 23, 2013
[1.2.5] Test case for #1683 + bug fixes
@ilijaljubicic
Copy link

Still getting this issue with phalcon 1.3.0 and
PHP 5.4.23-1+sury.org~precise+1 (cli) (built: Dec 12 2013 09:24:16)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

@dreamsxin
Copy link
Contributor

@engine07 Are you compilation do this:

cd ext
git pull
phpize 
./configue
make && make install

@ilijaljubicic
Copy link

Thank you, works now.
Was doing install from build dir before.

@ghost ghost mentioned this issue Jan 4, 2014
@ghost
Copy link

ghost commented Jul 6, 2015

Hi,

I am getting this notice after updating phalcon to 2.0.3, using PHP 5.6.10 when using Phalcon\Debug:
PHP Notice: Array to string conversion in Unknown on line 0
The notice was not generated on my previous install of phalcon 1.3.4

Test:

<?php
error_reporting(E_ALL);

$debug = new \Phalcon\Debug();
$debug->listen();

throw new \Exception();

I have tried @dreamsxin suggestion for installing phalcon:

cd ext
git pull
phpize 
./configue
make && make install

But no joy. Any ideas how I can go about fixing this?
Cheers

@andresgutierrez
Copy link
Contributor

@hallofgraphic

git clone https://github.com/phalcon/cphalcon
cd cphalcon/ext
git checkout 2.0.x
git pull -u
phpize 
./configure --enable-phalcon
make && sudo make install

@ghost
Copy link

ghost commented Jul 6, 2015

Thanks @andresgutierrez,
Traveling home, will test later

@ghost
Copy link

ghost commented Jul 8, 2015

@andresgutierrez
Fixed the issue thanks. Now on phalcon 2.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants