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

Array to String conversion #101

Open
KeKs0r opened this issue Jun 23, 2014 · 6 comments
Open

Array to String conversion #101

KeKs0r opened this issue Jun 23, 2014 · 6 comments

Comments

@KeKs0r
Copy link

KeKs0r commented Jun 23, 2014

Hi,

I am not 100% sure but I think this issue already surfaced.

Within my test cases I am getting the Error: "Array to string conversion" in vendor/bcc/resque-bundle/BCC/ResqueBundle/Resque.php on line 89.

The odd thing is that if I debug the code and add watches for every piece of 89 in my debugger, everything is working as expected. Just not the actual execution.

Has anybody experienced issues in there?

@ruudk
Copy link
Collaborator

ruudk commented Jun 24, 2014

I am getting the same errors in production. Haven't looked into it.

@KeKs0r
Copy link
Author

KeKs0r commented Jul 24, 2014

@ruudk did you investigate into this issue any further? Its coming up again and I have no idea why now again or where this is coming from.

I was digging more into this and it seems that array_intersect is not working with multidimensional arrays (https://bugs.php.net/bug.php?id=60198&edit=3), which is always the case if you have a retry strategy with multiple retries. This should definately be fixed in this bug. I will try to make a PR as soon as I find some time for it.

@ruudk
Copy link
Collaborator

ruudk commented Jul 25, 2014

I did not investigate. It only happens sometimes in the admin UI and the error is so rare that I got bigger problems to fix ;-)

@lsv
Copy link

lsv commented Jan 6, 2015

Quickfix

<li>
    <span>{{ argname }}</span>
    {% if argvalue is iterable %}
        <em class="pull-right">{{ argvalue|join(', ') }}</em>
    {% else %}
        <em class="pull-right">{{ argvalue }}</em>
    {% endif %}
</li>

The reason is if you are adding a array to args $job->args['foo'] = [1,2,3,4,5]; then the error will come

EDIT
Sorry, I just read it as it was at line 89 in the default/index view, where it does it everytime when you are adding a array to args

@ruudk
Copy link
Collaborator

ruudk commented Nov 17, 2015

@lsv Can you submit a PR please?

@lsv
Copy link

lsv commented Nov 17, 2015

I misread the issue - so mine was a fix for another issue I had.

But I can do a PR for the view?

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

3 participants