Yii failed to connect to postgresql database in slackware 13.37 - postgresql

I trying an application made in Yii 1.1.14 in slackware 13.37
When trying to connect it shows a pagae with this message:
Error 500
CDbConnection failed to open the DB connection.
The application.log in protected/runtime shows this
2017/09/07 10:32:16 [error] [exception.CDbException] could not find driver
2017/09/07 10:32:16 [error] [exception.CDbException] exception 'CDbException' with message 'CDbConnection failed to open the DB connection.' in /var/www/htdocs/myapp/yii/framework/db/CDbConnection.php:388
Stack trace:
#0 /var/www/htdocs/myapp/yii/framework/db/CDbConnection.php(330): CDbConnection->open()
#1 /var/www/htdocs/myapp/yii/framework/db/CDbConnection.php(308): CDbConnection->setActive(true)
#2 /var/www/htdocs/myapp/yii/framework/base/CModule.php(387): CDbConnection->init()
#3 /var/www/htdocs/myapp/yii/framework/base/CApplication.php(450): CModule->getComponent('db')
#4 /var/www/htdocs/myapp/yii/framework/db/ar/CActiveRecord.php(634): CApplication->getDb()
#5 /var/www/htdocs/myapp/yii/framework/db/ar/CActiveRecord.php(667): CActiveRecord->getDbConnection()
#6 /var/www/htdocs/myapp/yii/framework/db/ar/CActiveRecord.php(1455): CActiveRecord->getCommandBuilder()
#7 /var/www/htdocs/myapp/protected/components/UserIdentity.php(8): CActiveRecord->find('LOWER(username)...', Array)
#8 /var/www/htdocs/myapp/protected/models/LoginForm.php(52): UserIdentity->authenticate()
#9 /var/www/htdocs/myapp/yii/framework/validators/CInlineValidator.php(42): LoginForm->authenticate('password', Array)
#10 /var/www/htdocs/myapp/yii/framework/validators/CValidator.php(213): CInlineValidator->validateAttribute(Object(LoginForm), 'password')
#11 /var/www/htdocs/myapp/yii/framework/base/CModel.php(159): CValidator->validate(Object(LoginForm), NULL)
#12 /var/www/htdocs/myapp/protected/controllers/SiteController.php(97): CModel->validate()
#13 /var/www/htdocs/myapp/yii/framework/web/actions/CInlineAction.php(49): SiteController->actionLogin()
#14 /var/www/htdocs/myapp/yii/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#15 /var/www/htdocs/myapp/yii/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
#16 /var/www/htdocs/myapp/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#17 /var/www/htdocs/myapp/yii/framework/web/CWebApplication.php(282): CController->run('login')
#18 /var/www/htdocs/myapp/yii/framework/web/CWebApplication.php(141): CWebApplication->runController('site/login')
#19 /var/www/htdocs/myapp/yii/framework/base/CApplication.php(180): CWebApplication->processRequest()
#20 /var/www/htdocs/myapp/index.php(14): CApplication->run()
#21 {main}
REQUEST_URI=/myapp/index.php?r=site/login
HTTP_REFERER=http://192.168.0.131/myapp/index.php?r=site/login
The source code of the application and its connection to the database works fine in debian and ubuntu.
Others applications made in php can can connect with the same database in the slackware server.
any help?

Related

Update Magento2 version 2.3.2 to 2.4.4

When I'm trying to upgrade Magento 2.3.2 to 2.4.4 getting an issue
So I changed composer.json and composer.lock file from Magento-2.4.4
runned command composer update. but while running the setup: upgrade command showing these error
I'm using
elastic search version 7.17.0
Php version 8
MariaDB version 10.4
PHP Fatal error: Uncaught Error: Class "Magento\Framework\Component\ComponentRegistrar" not found in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php:7
Stack trace:
#0 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): require_once()
#1 [internal function]: Magento\NonComposerComponentRegistration{closure}()
#2 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): array_map()
#3 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(33): Magento\NonComposerComponentRegistration\main()
#4 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(73): require('...')
#5 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(63): composerRequire0d20ad2e084aeb870108ff1034f78aa5()
#6 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/autoload.php(7): ComposerAutoloaderInit0d20ad2e084aeb870108ff1034f78aa5::getLoader()
#7 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/autoload.php(30): include('...')
#8 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/bootstrap.php(33): require_once('...')
#9 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/bin/magento(14): require('...')
#10 {main}
thrown in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php on line 7
Fatal error: Uncaught Error: Class "Magento\Framework\Component\ComponentRegistrar" not found in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php:7
Stack trace:
#0 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): require_once()
#1 [internal function]: Magento\NonComposerComponentRegistration{closure}()
#2 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(29): array_map()
#3 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/etc/NonComposerComponentRegistration.php(33): Magento\NonComposerComponentRegistration\main()
#4 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(73): require('...')
#5 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/composer/autoload_real.php(63): composerRequire0d20ad2e084aeb870108ff1034f78aa5()
#6 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/vendor/autoload.php(7): ComposerAutoloaderInit0d20ad2e084aeb870108ff1034f78aa5::getLoader()
#7 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/autoload.php(30): include('...')
#8 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/bootstrap.php(33): require_once('...')
#9 /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/bin/magento(14): require('...')
#10 {main}
thrown in /home/oem/projects/PRANISHA-Magento/south/newsite/newsite/app/code/VladimirPopov/WebForms/registration.php on line 7
Magento upgradion to 2.4.4
please use the latest version of VladimirPopov_WebForms,
Let me know its works or not.

Failed to load dynamic library 'libiris_event_handler.so': dlopen failed: library "libiris_event_handler.so" not found in Agora.io's newest SDK(6.0.0)

So, I just updated my Flutter App to run in the SDK 6.0.0, but for some reason, whenever I start the app in the emulator, I get this error message:
E/flutter (15665): [ERROR:flutter/runtime/dart_isolate.cc(1111)] Unhandled exception:
E/flutter (15665): Invalid argument(s): Failed to load dynamic library 'libiris_event_handler.so': dlopen failed: library "libiris_event_handler.so" not found
E/flutter (15665): #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12:43)
E/flutter (15665): #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23:12)
E/flutter (15665): #2 IrisEvent._loadAgoraRtcWrapperLib
package:iris_event/iris_event.dart:23
E/flutter (15665): #3 new IrisEvent
package:iris_event/iris_event.dart:15
E/flutter (15665): #4 _ApiCallExecutorInternal.initilize
package:agora_rtc_engine/…/impl/api_caller.dart:429
E/flutter (15665): #5 _ApiCallExecutor._execute
package:agora_rtc_engine/…/impl/api_caller.dart:183
E/flutter (15665): #6 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:300:17)
E/flutter (15665): #7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
And yeah, I have no idea of what's going on. I even installed this library, the iris_event, but still, same error

Periodic Error in Flutter: Unhandled Exception: Null check operator used on a null value

As soon as I start my App (it happens both in debug and profile mode), the following error occurs:
[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Null check operator used on a null value
E/flutter (12391): #0 State.setState (package:flutter/src/widgets/framework.dart:1108)
E/flutter (12391): #1 _PollCardViewState.updatePoll.<anonymous closure> (package:mobile_app/components/poll_card_view/poll_card_view.dart:58)
E/flutter (12391): #2 _rootRunUnary (dart:async/zone.dart:1362)
E/flutter (12391): #3 _CustomZone.runUnary (dart:async/zone.dart:1265)
E/flutter (12391): #4 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170)
E/flutter (12391): #5 _CustomZone.bindUnaryCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1207)
E/flutter (12391): #6 _rootRunUnary (dart:async/zone.dart:1370)
E/flutter (12391): #7 _CustomZone.runUnary (dart:async/zone.dart:1265)
E/flutter (12391): #8 _CustomZone.bindUnaryCallback.<anonymous closure> (dart:async/zone.dart:1191)
E/flutter (12391): #9 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:395)
E/flutter (12391): #10 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:426)
E/flutter (12391): #11 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184)
E/flutter (12391):
The error happens periodically in the background and does not affect the app. In fact, the app seems to work just as always.
The error does not mention any of my widgets or different pages. I do not have any clue where this Null check operator is used on a null value.
Yesterday my app was just fine and this error did not happen.
I am not using Flutter Null Safety. But i did not use it from the beginning, and this error never happened before. Does anyone have an idea where the problem is?

Multiple Unresolved class in AndroidManifest.xml. Error when using sharing_intent plugin MissingPluginException

I know that I'm asking two questions at once, but I don't know if it could be related.
I can't get to solve all the unresolved classes from the AndroidManifest.xml
I've tried multiple things:
Invalidating Caches/Restart
flutter clean
Adding rest.clinimetric.MainActivity to try and solve at least one problem
Create a simple app to check if would get the same error. It did.
This is the whole error that I'm getting when using the plugin receive_sharing_intent. It pops when I open a pdf with my app. I don't understand though that the error pops on the Pixel 3A while not on a Samsung A40. There is something more specific on this that I'm missing?
W/FlutterActivity(12757): Tried to automatically register plugins with FlutterEngine (io.flutter.embedding.engine.FlutterEngine#fa044bb) but could not find and invoke the GeneratedPluginRegistrant.
D/HostConnection(12757): HostConnection::get() New Host Connection established 0xf2754470, tid 12844
D/HostConnection(12757): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
D/EGL_emulation(12757): eglMakeCurrent: 0xf2542690: ver 3 0 (tinfo 0xbc509e10) (first time)
I/Choreographer(12757): Skipped 35 frames! The application may be doing too much work on its main thread.
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel
receive_sharing_intent/events-media:
MissingPluginException(No implementation found for method listen on channel
receive_sharing_intent/events-media)
When the exception was thrown, this was the stack:
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
<asynchronous suspension>
#1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
#2 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:542:29)
#3 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:528:64)
#8 CastStream.listen (dart:_internal/async_cast.dart:17:17)
#11 _ClinimetricHomePageState.initState (package:clinimetric/main.dart:147:47)
#12 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4684:58)
#13 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
... Normal element mounting (132 frames)
#145 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#146 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5991:32)
... Normal element mounting (258 frames)
#404 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#405 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
#406 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
#407 _InheritedProviderScopeElement.performRebuild (package:provider/src/inherited_provider.dart:397:11)
#408 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
#409 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
#410 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
... Normal element mounting (7 frames)
#417 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
... Normal element mounting (7 frames)
#424 _NestedHookElement.mount (package:nested/nested.dart:188:11)
... Normal element mounting (7 frames)
#431 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#432 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#433 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
#434 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1174:16)
#435 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1145:5)
#436 RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1087:17)
#437 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:19)
#438 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1086:13)
#439 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:927:7)
#440 WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:908:7)
(elided 17 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by services library ══════════════════════════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel receive_sharing_intent/events-media:
MissingPluginException(No implementation found for method listen on channel receive_sharing_intent/events-media)
etc... because it's calling 4 functions, so for each of them the error pops up
Thanks in advance!
I'm unable to replicate the same errors you got on your Manifest file. Have you tried running the complete sample app and see if it works? Make sure that Android Studio and the Flutter plugin that you're using is up-to-date.
You can also try running flutter doctor to check for any errors or warnings.

Purchase fails Flutter flutter_inapp_purchase

I have a non-renewing subscription in iOS that fails during testing. I'm using the Flutter library flutter_inapp_purchase. I am getting the products to successfully load/fetch from iTunesConnect, but I get an error when attempting to purchase. This error occurs after I successfully enter my Sandbox user credentials.
I've tested this sandbox user and IAP setup using a previous version of the app built in Swift and everything works as expected, so I'm fairly certain the issue is something specific to this Flutter.
Purchase Started !!
2019-05-08 11:44:47.819382-0500 Runner[16255:3743382]
Purchase Failed !!
2019-05-08 11:44:47.824961-0500 Runner[16255:3743449] flutter: Caused err. Set additionalSuccessPurchaseListenerIOS.
2019-05-08 11:44:47.825483-0500 Runner[16255:3743449] flutter: PlatformException(E_UNKNOWN, An unknown or unexpected error has occured. Please try again later., null)
2019-05-08 11:44:47.829865-0500 Runner[16255:3743449] [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(ios, platform not supported, null)
#0 FlutterInappPurchase.buyProduct (package:flutter_inapp_purchase/flutter_inapp_purchase.dart:269:5)
<asynchronous suspension>
#1 _PurchaseSubscriptionPageState.buyProduct (package:undaunted_golf_flutter/PurchaseSubscriptionPage.dart:98:58)
<asynchronous suspension>
#2 _PurchaseSubscriptionPageState.build.<anonymous closure> (package:undaunted_golf_flutter/PurchaseSubscriptionPage.dart:344:25)
<asynchronous suspension>
#3 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:511:14)
#4 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:566:30)
#5 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:166:24)
#6 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:240:9)
#7 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:211:7)
#8 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#9 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:225:20)
#10 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:199:22)
#11 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#12 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#13 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#14 _rootRunUnary (dart:async/zone.dart:1136:13)
#15 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#16 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#17 _invoke1 (dart:ui/hooks.dart:233:10)
#18 _dispatchPointerDataPacket (dart:ui/hooks.dart:154:5)
2019-05-08 11:45:22.597897-0500 Runner[16255:3743779] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x10ab13540] get output frames failed, state 8196
2019-05-08 11:45:22.598180-0500 Runner[16255:3743779] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x10ab13540] get output frames failed, state 8196
2019-05-08 11:45:22.598613-0500 Runner[16255:3743779] TIC Read Status [4:0x0]: 1:57
2019-05-08 11:45:22.598659-0500 Runner[16255:3743779] TIC Read Status [4:0x0]: 1:57
Solved!
1) I decided to use the Package created by the Google Flutter team. https://pub.dev/packages/in_app_purchase
2) This spit out a more helpful error. I discovered that the issue was with the build number in my XCode runner project.
To fix: Document Outline - Runner
Make sure General Tab is selected
Targets - Runner
Replace Build number with a numerical value rather than $(FLUTTER....)