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

Spinner remains loading after login on iOS app with PHP 8.2 Siberian V5.0.8 MAE #826

Open
pinpointbrendan opened this issue Nov 16, 2023 · 2 comments

Comments

@pinpointbrendan
Copy link

Server PHP 8.2
Siberian: 5.0.8 MAE
After logging in with correct credentials on an iOS App, the spinner icon remains loading.
The Account feature fails top disappear back to the main app. The login screen remains with that spinner.
If you kill the app and reopen it then you are logged back in.

As I see it, after you log in initially with correct credentials, the Account login screen fails to disappear back to the app!

I reverted our server back to PHP 7.4 and the problem disappeared, so I believe this is linked solely to PHP 8.2.

@Slicit
Copy link
Collaborator

Slicit commented Dec 14, 2023

PHP 7.3 is yet the official supported version, PHP 8.2 can lead to unexpected issues with third party modules

If you want to test & play you are welcome, but please report PHP logs with errors, etc... so we (the developers) can look and fix them

If you are just running a production server, just stay on the stable PHP 7.3!

Have a nice day!

@pinpointbrendan
Copy link
Author

Well, hopefully the error below helps if you wish to bring V5 to a production version.

It is a 400 error in the Apache:
POST /overview/customer/mobile_account_login/post HTTP/1.0

From the log file:
IP.IP.IP.IP - - [17/Dec/2023:21:19:05 +0000] "POST /overview/customer/mobile_account_login/post HTTP/1.0" 400 944 "-" "AppsMobileCompany/6.2.1 CFNetwork/1485 Darwin/23.1.0"

Error Log in Siberian log folder:

2023-12-17T21:20:40+00:00 CRIT (2): Fatal Error:
ArrayObject Object
(
[storage:ArrayObject:private] => Array
(
[exception] => Zend_Db_Statement_Exception Object
(
[message:protected] => SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Statement/Pdo.php
[line:protected] => 234
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Statement.php
[line] => 303
[function] => _execute
[class] => Zend_Db_Statement_Pdo
[type] => ->
)

                        [1] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Adapter/Abstract.php
                                [line] => 480
                                [function] => execute
                                [class] => Zend_Db_Statement
                                [type] => ->
                            )

                        [2] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Adapter/Pdo/Abstract.php
                                [line] => 238
                                [function] => query
                                [class] => Zend_Db_Adapter_Abstract
                                [type] => ->
                            )

                        [3] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Siberian/Db/Adapter/Pdo/Mysql.php
                                [line] => 23
                                [function] => query
                                [class] => Zend_Db_Adapter_Pdo_Abstract
                                [type] => ->
                            )

                        [4] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/sae/modules/Customer/Model/Db/Table/Customer.php
                                [line] => 20
                                [function] => query
                                [class] => Siberian_Db_Adapter_Pdo_Mysql
                                [type] => ->
                            )

                        [5] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/sae/modules/Customer/Model/Customer.php
                                [line] => 90
                                [function] => clearBySessionUuid
                                [class] => Customer_Model_Db_Table_Customer
                                [type] => ->
                            )

                        [6] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/sae/modules/Customer/controllers/Mobile/Account/LoginController.php
                                [line] => 108
                                [function] => updateSessionUuid
                                [class] => Customer_Model_Customer
                                [type] => ->
                            )

                        [7] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Controller/Action.php
                                [line] => 516
                                [function] => postAction
                                [class] => Customer_Mobile_Account_LoginController
                                [type] => ->
                            )

                        [8] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Controller/Dispatcher/Standard.php
                                [line] => 308
                                [function] => dispatch
                                [class] => Zend_Controller_Action
                                [type] => ->
                            )

                        [9] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Controller/Front.php
                                [line] => 963
                                [function] => dispatch
                                [class] => Zend_Controller_Dispatcher_Standard
                                [type] => ->
                            )

                        [10] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/Bootstrap.php
                                [line] => 462
                                [function] => dispatch
                                [class] => Zend_Controller_Front
                                [type] => ->
                            )

                        [11] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Application.php
                                [line] => 366
                                [function] => run
                                [class] => Bootstrap
                                [type] => ->
                            )

                        [12] => Array
                            (
                                [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/index.php
                                [line] => 118
                                [function] => run
                                [class] => Zend_Application
                                [type] => ->
                            )

                    )

                [previous:Exception:private] => PDOException Object
                    (
                        [message:protected] => SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
                        [string:Exception:private] => 
                        [code:protected] => HY093
                        [file:protected] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Statement/Pdo.php
                        [line:protected] => 228
                        [trace:Exception:private] => Array
                            (
                                [0] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Statement/Pdo.php
                                        [line] => 228
                                        [function] => execute
                                        [class] => PDOStatement
                                        [type] => ->
                                    )

                                [1] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Statement.php
                                        [line] => 303
                                        [function] => _execute
                                        [class] => Zend_Db_Statement_Pdo
                                        [type] => ->
                                    )

                                [2] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Adapter/Abstract.php
                                        [line] => 480
                                        [function] => execute
                                        [class] => Zend_Db_Statement
                                        [type] => ->
                                    )

                                [3] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Db/Adapter/Pdo/Abstract.php
                                        [line] => 238
                                        [function] => query
                                        [class] => Zend_Db_Adapter_Abstract
                                        [type] => ->
                                    )

                                [4] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Siberian/Db/Adapter/Pdo/Mysql.php
                                        [line] => 23
                                        [function] => query
                                        [class] => Zend_Db_Adapter_Pdo_Abstract
                                        [type] => ->
                                    )

                                [5] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/sae/modules/Customer/Model/Db/Table/Customer.php
                                        [line] => 20
                                        [function] => query
                                        [class] => Siberian_Db_Adapter_Pdo_Mysql
                                        [type] => ->
                                    )

                                [6] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/sae/modules/Customer/Model/Customer.php
                                        [line] => 90
                                        [function] => clearBySessionUuid
                                        [class] => Customer_Model_Db_Table_Customer
                                        [type] => ->
                                    )

                                [7] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/sae/modules/Customer/controllers/Mobile/Account/LoginController.php
                                        [line] => 108
                                        [function] => updateSessionUuid
                                        [class] => Customer_Model_Customer
                                        [type] => ->
                                    )

                                [8] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Controller/Action.php
                                        [line] => 516
                                        [function] => postAction
                                        [class] => Customer_Mobile_Account_LoginController
                                        [type] => ->
                                    )

                                [9] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Controller/Dispatcher/Standard.php
                                        [line] => 308
                                        [function] => dispatch
                                        [class] => Zend_Controller_Action
                                        [type] => ->
                                    )

                                [10] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Controller/Front.php
                                        [line] => 963
                                        [function] => dispatch
                                        [class] => Zend_Controller_Dispatcher_Standard
                                        [type] => ->
                                    )

                                [11] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/app/Bootstrap.php
                                        [line] => 462
                                        [function] => dispatch
                                        [class] => Zend_Controller_Front
                                        [type] => ->
                                    )

                                [12] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/lib/Zend/Application.php
                                        [line] => 366
                                        [function] => run
                                        [class] => Bootstrap
                                        [type] => ->
                                    )

                                [13] => Array
                                    (
                                        [file] => /var/www/vhosts/<<INSTALL_FOLDER>>/<<INSTALL_DOMAN>>/index.php
                                        [line] => 118
                                        [function] => run
                                        [class] => Zend_Application
                                        [type] => ->
                                    )

                            )

                        [previous:Exception:private] => 
                        [errorInfo] => Array
                            (
                                [0] => HY093
                                [1] => 0
                            )

                    )

                [_previous:Zend_Exception:private] => 
            )

        [type] => EXCEPTION_OTHER
        [request] => Siberian_Controller_Request_Http Object
            (
                [_dispatched:protected] => 1
                [_module:protected] => customer
                [_moduleKey:protected] => module
                [_controller:protected] => mobile_account_login
                [_controllerKey:protected] => controller
                [_action:protected] => post
                [_actionKey:protected] => action
                [_params:protected] => Array
                    (
                        [module] => customer
                        [controller] => mobile_account_login
                        [action] => post
                    )

                [_paramSources:protected] => Array
                    (
                        [0] => _GET
                        [1] => _POST
                    )

                [_requestUri:protected] => /overview/customer/mobile_account_login/post
                [_baseUrl:protected] => https://<<INSTALL_DOMAN>>
                [_basePath:protected] => 
                [_pathInfo:protected] => /customer/mobile_account_login/post
                [_rawBody:protected] => {"id":0,"can_connect_with_facebook":false,"can_access_locked_features":false,"token":"tcfjfat2s84ie4tjq92b6d2vv6","isLoggedIn":false,"is_logged_in":false,"extendedFields":[],"extendedFieldsPristine":[],"email":"[email protected]","password":"hn9w84sr","device_uid":"B82D765E-6E2F-4AE2-87F9-DD54BABA2363"}
                [_aliases:protected] => Array
                    (
                    )

                [_is_backoffice:protected] => 
                [_is_application:protected] => 1
                [_language_code:protected] => 
                [_force_language_code:protected] => 
                [_is_native:protected] => 
                [_use_application_key:protected] => 1
                [_white_label_editor:protected] => 
                [_application] => 
                [_application_key:protected] => 
                [_ionic_path:protected] => 
                [_is_installing:protected] => 
                [_mediaUrl:protected] => 
                [isAllowed] => 
            )

    )

)

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

2 participants