-
Notifications
You must be signed in to change notification settings - Fork 265
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
Unable to call to undefined method getRealContainingOneof #891 #978
Comments
Sorry for late response. So, have you figured out what implementation (PHP or C) your system is using based on https://developers.google.com/google-ads/api/docs/client-libs/php/protobuf? |
Hey, thanks for getting back to me. I think it's the PHP implementation. When I run |
Could you use my instructions shared above - https://developers.google.com/google-ads/api/docs/client-libs/php/protobuf#determine_which_implementation_is_being_used? |
Ah, sorry missed that. Yeah ran it and empty response, so it would seem php. |
If PHP, would you be able to find a way to debug that in your IDE or print out something in the files along the call stack to confirm that they're called like you think? |
Ok, so I traced through the code in the vendor files, and found where the One of the things I printed out was the Within the So I have no idea what |
Would it be possible for you to refresh your |
I've tried that a number of times, and unfortunately no change. |
So, your protobuf is a latest version now? I ask because the version you mentioned above is |
Ah I see, we have an older version of the extension installed (3.19.4). I kept trying to update the proto library that composer uses. So if we update the extension, presumably the error should go away? |
Yep. Upgrading it to any versions after June 2022 should work. |
Closing due to inactivity. |
Hey, sorry for the long delay, I was on parental leave and am still getting caught up. For those facing similar problems, upgrading the extension does seem to have made the error disappear. I'm getting other errors for what I'm trying to do, but not the one discussed above : ) |
Your client library and Google Ads API versions:
Client library version:
21.0
Google Ads API version:
V15
Your environment:
PHP Version 8.1.26
================= PHP EXTENSION INFORMATION The PHP Extension grpc is installed: 1.44.0 The PHP Extension protobuf is installed: 3.19.4Description of the bug:
I'm running into what seems like the same issue as #891. I have followed the links and suggestions but have not been able to resolve the issue.(The issue was closed so I didn't know if I should post there, apologies for duplication if it was better to post in the other!)
The error:
Call to undefined method Google\Protobuf\FieldDescriptor::getRealContainingOneof() Code: 0
I have checked vendor, and the file is there, along with the method.
I've been trying to track down how I can tell if I have 2 protobufs running (a PHP and a C, and one is interfering with the other) but have not been able to tell.
Steps to reproduce:
This has been happening when I've tried to update a campaign to a new bidding type. The error occurs when I call setUpdateFieldMasks. Below is some of the code used to update campaigns
Expected behavior:
Request/Response Logs:
Anything else we should know about your project / environment:
We're able to update campaigns when the updates are "simple", e.g., updating the status. When trying to update the bid strategy for a campaign, a few fields need to be updated at once, could this be part of the issue?
The text was updated successfully, but these errors were encountered: