Hi I just purchased your Shop add on yesterday and installed it, THE ISSUE is the shopping front page URL: http://lojawix.com.br/ only works IF I am logged in, If I log out I get 500 Error and URL does not work.
- MSAnswered
Hello,
Can you please check your server error logs and let me know the error details.
If it’s new install, can you please edit
app/core/MY_Shop_Controller.php
and following line afterparent::__construct();
around line 10$this->db->query('SET SESSION sql_mode = ""');
It will resolve the issue if it’s due to mysql modes. However the log will have the details about the cause so I will need the error details.
Thank you
- JPAnswered
Sorry, i checked the file and this information is there, What should I do there?
- JPAnswered
On the File MY_Controller, existes this information:
$this->db->query(‘SET SESSION sql_mode = “”’);On the file MY_Shop_Controller: Did not have this information: $this->db->query(‘SET SESSION sql_mode = “”’); SO I ADDED IT THERE and Still did not work…
When you say “Server error log” you mean on my hosting and not my site, right?
On go daddy hosting this is just what i´ve found:
Click one of the error pages below to edit:
400 (Bad request) 401 (Authorization required) 402 (Payment required) 403 (Forbidden) 404 (Not found) 405 (Method not allowed) 406 (Not acceptable) 407 (Proxy authentication required) 408 (Request timeout) 409 (Conflict) 410 (Gone) 411 (Length required) 412 (Precondition failed) 413 (Request entity too large) 414 (Request URI too large) 415 (Unsupported media type) 416 (Request range not satisfiable) 417 (Expectation failed) 422 (Unprocessable entity) 423 (Locked) 424 (Failed dependency) 500 (Internal server error) 501 (Not Implemented) 502 (Bad gateway) 503 (Service unavailable) 504 (Gateway timeout) 505 (HTTP version not supported) 506 (Variant also negotiates) 507 (Insufficient storage) 510 (Not extended)
When I click in each title above, there are nothing inside.
- MSAnswered
Hello,
By server error log, I mean you web server error logs. If cPanel it should be errors on main page and for others may be host can help.
You can enable app log by changing the
log_threshold
to 1 inapp/config/config.php
then visit the pages again to produce errors. Lastly check the latest log file in theapp/logs/
folder.Thank you
- JPAnswered
I did what you said above, after turning the 0 to 01, I checked the error log again and is still empty, no error showing.
app/logs/ i found this information:
ERROR - 2020-06-10 13:06:43 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:06:44 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:06:46 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:06:46 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:06:51 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:06:55 --> Could not find the language line “type_email_to_reset” ERROR - 2020-06-10 13:06:56 --> Could not find the language line “type_email_to_reset” ERROR - 2020-06-10 13:07:01 --> Could not find the language line “promos” ERROR - 2020-06-10 13:07:01 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 13:07:09 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 13:24:01 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:24:02 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:25:51 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:25:53 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:25:54 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:26:40 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:43 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:44 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:45 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:45 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:45 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:45 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:45 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 13:28:46 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:12:00 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:12:01 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:12:05 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:12:05 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:12:06 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:18:32 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:18:36 --> Could not find the language line “type_email_to_reset” ERROR - 2020-06-10 14:18:37 --> Could not find the language line “type_email_to_reset” ERROR - 2020-06-10 14:18:41 --> Could not find the language line “promos” ERROR - 2020-06-10 14:18:41 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:18:51 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:18:51 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:18:56 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:19:00 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:19:03 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:19:04 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:19:06 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:19:16 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:21:45 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:21:46 --> Could not find the language line “required_invalid” ERROR - 2020-06-10 14:21:50 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:21:51 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:21:52 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:21:53 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:21:54 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:21:59 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:22:00 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71 ERROR - 2020-06-10 14:22:09 --> Severity: error --> Exception: syntax error, unexpected ‘debug_mode’ (T_STRING) /home/v9u8txfucdgh/public_html/app/config/hybridauthlib.php 71
Can you respond a bit faster please?
- MSAnswered
Hello,
I can’t guess what’s wrong. Might be hybridauthlib’s syntax error.
Please replace all the contents of
app/config/hybridauthlib.php
with following<?php defined('BASEPATH') or exit('No direct script access allowed'); /* ---------------------------------------------------------------------------- /* HybridAuth Guide: http://hybridauth.github.io/hybridauth/userguide.html /* ------------------------------------------------------------------------- */ $config = [ // For godady Shared Hosting Server uncomment the line below // Please update the callback url too 'Hauth_base_url' => 'social_auth/endpoint', // Please comment this if you have uncommented the above // 'Hauth_base_url' => 'social_auth/endpoint', 'providers' => [ 'Google' => [ 'enabled' => false, 'keys' => ['id' => '', 'secret' => ''], ], 'Facebook' => [ 'enabled' => false, 'keys' => ['id' => '', 'secret' => ''], 'scope' => 'email, public_profile, user_birthday', ], 'Twitter' => [ 'enabled' => false, 'keys' => ['key' => '', 'secret' => ''], ], 'Yahoo' => [ 'enabled' => false, 'keys' => ['id' => '', 'secret' => ''], ], 'Live' => [ 'enabled' => false, 'keys' => ['id' => '', 'secret' => ''], ], 'MySpace' => [ 'enabled' => false, 'keys' => ['key' => '', 'secret' => ''], ], 'OpenID' => [ 'enabled' => false, ], 'LinkedIn' => [ 'enabled' => false, 'keys' => ['key' => '', 'secret' => ''], ], 'Foursquare' => [ 'enabled' => false, 'keys' => ['id' => '', 'secret' => ''], ], 'AOL' => [ 'enabled' => false, ], ], 'debug_mode' => false, 'debug_file' => APPPATH . 'logs/hybridauth.php', ];
If still same, please let me know your server details in private reply. You can post private reply by enabling the
PRIVATE for Staff only
at top right of reply section.I am not in your timezone and as response time to 2 days. We check questions every 2 hours while working and can’t reply after work.
Thank you
- JPAnswered
Hi, thank you! It seems like it worked this time! I appreciate your helping hand 😃
- MSAnswered
Hello,
I am glad to know. I will check why that file has syntax error 😦
Thank you
- JPAnswered
It work for me, thank you.
- AHAnswered
work for me
- Login to Reply