Twilio throws fatal error in php 7.x - twilio-php

I"m getting the following error in my production server, I gave the maximum possible permission for this wp-content directory and I still get this error, can you please assist ?
PHP Warning: include(): Failed opening
'/var/www/html/wp-content/plugins/text-my-app/Services/Twilio/Rest/.php'
for inclusion (include_path='.:/usr/share/php') in
/var/www/html/wp-content/plugins/text-my-app/Services/Twilio.php on
line 9, PHP Fatal error: Uncaught Error: Class 'Services_Twilio_Rest_'
not found in
/var/www/html/wp-content/plugins/text-my-app/Services/Twilio/Resource.php:47\nStack
trace:\n#0
/var/www/html/wp-content/plugins/text-my-app/Services/Twilio/Rest/Account.php(23):
Services_Twilio_Resource->setupSubresources('applications',
'available_phone...', 'outgoing_caller...', 'calls', 'conferences',
'incoming_phone_...', 'notifications', 'outgoing_caller...',
'recordings', 'sms_messages', 'short_codes', 'transcriptions',
'connect_apps', 'authorized_conn...', 'usage_records',
'usage_triggers', 'queues')\n#1
/var/www/html/wp-content/plugins/text-my-app/Services/Twilio/Resource.php(25):
Services_Twilio_Rest_Account->init(Object(Services_Twilio),
'/2010-04-01/Acc...')\n#2
/var/www/html/wp-content/plugins/text-my-app/Services/Twilio/ListResource.php(39):
Services_Twilio_Resource->__construct(Object(Services_Twilio),
'/2010-04-01/Acc...')\n#3
/var/www/html/wp-content/plugins/text-my-app/Services/Twilio.php(73):
Services_Twilio_ListResource->get('AC2ab0e6e0b in
/var/www/html/wp-content/plugins/text-my-app/Services/Twilio/Resource.php
on line 47, referer:

Related

Failed to start the VM error when starting a Dataflow SQL job

Getting the following error when I try to launch a Dataflow SQL job:
Failed to start the VM, launcher-____, used for launching because of status code: INVALID_ARGUMENT, reason: Error: Message: Invalid value for field 'resource.networkInterfaces[0].network': 'global/networks/default'. The referenced network resource cannot be found. HTTP Code: 400.
This issue just started today.
Adding the default network solved the issue.

How to close Appium driver properly in Python?

I am using Python 3.7 with Appium 1.15.1 on real Android Device.
When my script finish the job, I close the driver with these lines:
if p_driver:
p_driver.close()
but I get this error ouput:
File "C:\Users\Nino\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 688, in close
self.execute(Command.CLOSE)
File "C:\Users\Nino\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Nino\AppData\Roaming\Python\Python37\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
File "C:\Users\Nino\AppData\Roaming\Python\Python37\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File "C:\Users\Nino\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - undefined
I would like to understand what I am doing wrong?
What is the way to close properly the driver?
Can you help me please?
Step1: you should get the appium session dictionary first:
session_instance = webdriver.Remote(str(url), caps_dic)
where url is your appium server url. something like: "http://127.0.0.1:4723/wd/hub"
and caps_dic is a dictionary of all your desired capabilities
Step2: you run the quit() method on session:
session_instance[session].quit()
So the whole snippet is:
session_instance = webdriver.Remote(str(url), caps_dic)
session_instance[session].quit()

How do you fix upgrade

I'm 3 months new into dart and I've been fairly lucky not to have encountered any issues that couldn't be fixed from answers found on the net, but this one has stumped me.
I downloaded this sample app (https://github.com/vsavkin/angulardart-sample-app) installed it into dart-editor (on my mac mini) using Open Existing Folder and then running get Pub Get (or even Pub Update) on the pubspec.yaml file.
I was getting dartium loading with a running app until I upgraded the SDK from 1.4.2 to 1.5.8 and the pubspec.yaml file from
environment:
sdk: '>=1.4.2 <2.0.0' to
environment:
sdk: '>=1.5.8 <2.0.0'
where everything just broke and i am now getting these types of errors in dartium which I'd like to know how to fix (reverting hasn't helped, 404's are still present - is there some old cache that's being read that I can't find?):
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/packages/shadow_dom/shadow_dom.min.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/routing/static_keys.dart
An error occurred loading file: package:angular/routing/static_keys.dart package:angular/routing/static_keys.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/cache/module.dart
An error occurred loading file: package:angular/cache/module.dart package:angular/cache/module.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/core_dom/directive_injector.dart
An error occurred loading file: package:angular/core_dom/directive_injector.dart package:angular/core_dom/directive_injector.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/cache/js_cache_register.dart
An error occurred loading file: package:angular/cache/js_cache_register.dart package:angular/cache/js_cache_register.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/directive/static_keys.dart
An error occurred loading file: package:angular/directive/static_keys.dart package:angular/directive/static_keys.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/core/static_keys.dart
An error occurred loading file: package:angular/core/static_keys.dart package:angular/core/static_keys.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/di/src/reflector.dart
An error occurred loading file: package:di/src/reflector.dart package:di/src/reflector.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/change_detection/ast_parser.dart
An error occurred loading file: package:angular/change_detection/ast_parser.dart package:angular/change_detection/ast_parser.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/angular/core_dom/compiler_config.dart
An error occurred loading file: package:angular/core_dom/compiler_config.dart package:angular/core_dom/compiler_config.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/di/check_bind_args.dart
An error occurred loading file: package:di/check_bind_args.dart package:di/check_bind_args.dart:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/aa-app/web/packages/di/src/reflector_dynamic.dart
An error occurred loading file: package:di/src/reflector_dynamic.dart package:di/src/reflector_dynamic.dart:1
Have tried starting from scratch
Have tried different versions of the angular package ie version 11.0, 12.0, 13.0
Have tried different versions of SDK from 1.4.2 to 1.5.3 to 1.5.8 still the same output
What on earth have i done to ruin something that was working so slickly?
The error "Module.DEFAULT_REFLECTOR not initialized" is thrown because the di transformer is not executed.
You need to add the anfular transformer to your pubspec.yaml (which includes the di transformer)

Error running UI Automation from command line

I think this is a first - I'm getting an error and the exception constant that I'm getting back returns nothing when I search for it on Google.
Basically I'm trying to run UI Automation on my iOS app from the CLI and am getting the following error message:
2013-02-22 13:12:17.820 ScriptAgent[16626:2e07] +[UIAXElement initialize]: UIAutomation never received kAXAccessibilityLoaded. Waited 20.02 seconds.
2013-02-22 13:12:17.826 ScriptAgent[16626:2e07] Unexpected error in -[UIAXElement_0xad343c initialize], /SourceCache/UIAutomation_Sim/UIAutomation-271/Framework/UIAXElement.m line 165, kAXErrorServerNotFound
2013-02-22 13:12:17.828 ScriptAgent[16626:2e07] Terminating app due to uncaught exception 'kUIAExeceptionAccessibilityError', reason: 'Unexpected error in -[UIAXElement_0xad343c initialize], /SourceCache/UIAutomation_Sim/UIAutomation-271/Framework/UIAXElement.m line 165, kAXErrorServerNotFound'
First throw call stack:
(0x491012 0x1b78e7e 0x490deb 0xa8a55b 0x1b797cf 0x1b80a0d 0x1b77aeb 0x1b77e22 0x1b8a0e1 0xaa2605 0xa847 0x5d8d 0x866d 0x2925)
libc++abi.dylib: terminate called throwing an exception
2013-02-22 13:12:18.264 instruments[16585:2227] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException
2013-02-22 19:12:18 +0000 Fail: An error occurred while trying to run the script.
Instruments Trace Complete (Duration : 41.326542s; Output : /Users/newmanp/Work/iOS/CMAiPad/CMA.Mobile/UIScripts/instrumentscli3.trace)
I search on kAXAccessibilityLoaded or kAXErrorServerNotFound and get no hits at all. Here's what my command line call looks like:
instruments -t ~/Work/iOS/Platforms/iPhoneOS.platform//Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/newmanp/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/B60B9BD7-357D-49AA-9E6F-986929C5D151/CMA.app -e UIASCRIPT ./cmaAutomationTests.js -e UIARESULTSPATH "."
Any suggestions of what I might be doing wrong greatly appreciated.
We saw this error when "Enable UI Automation" wasn't turned on in the "Developer" section of the "Settings" app. Turning on the setting resolved the error.
I had something similar, try
sudo rm /tmp/instruments_sock
You can see it here https://github.com/appium/appium/issues/172
My UIAScriptAgentSignaledException is resolved by enabling the 'Enable UI Automation' option in iPhone/Settings/Developer/UI Automation section.

Symfony error - PHP Fatal error: Class sfPropelRouteCollection not found in config_routing.yml.php

I get a 500 error when I try to run the site's backend in IE.
Apache error log.
Symfony error - PHP Fatal error: Class 'sfPropelRouteCollection' not found in
\\cache\\backend\\prod\\config\\config_routing.yml.php on line 5
I tried investigating config_routing.yml.php and it appears that it's calling a new sfPropelRouteCollection class, and cannot find it.
I found the file containing it in:
\lib\vendors\symfony\lib\plugins\sfPropelPlugin\lib\routing\sfPropelRouteCollection.class.php
I cleared the cache several times, that didn't help.
The frontend of the site is running normally

Resources