Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

AndyC

Members
  • Content Count

    797
  • Joined

  • Last visited

  • Days Won

    2

AndyC last won the day on December 27 2019

AndyC had the most liked content!

Community Reputation

47 Excellent

About AndyC

  • Birthday 02/20/1967

Information

Recent Profile Visitors

974 profile views
  1. Do you not have backups on your server ...If this is my case I normally make a backup try and if it fails I just do a restore and try something else
  2. Am having to use it until I can find an alternative, tried the prestashop and that just killed my page speed
  3. Yeah it happens with me as well .Every update it happens. I have to sign in and download via account
  4. OK, thanks It's version 1.0.0 ..Will have to keep looking for something similar as 200 words is just to long at the top
  5. What checkout you using .. The standard 5 step or something else..
  6. Hi I have finally gotten down to actually installing the module to start using it ..Can I ask. Is there a way to remove the image block so the text appears higher up as it looks like dead space at the moment.. It's on the main categories I am doing right now TIA
  7. AndyC

    oneall.com Module

    I fully understand, I was hoping it would be a simple fix ...So thank you for all your help anyway.. I'll have to get back onto them for help.
  8. AndyC

    oneall.com Module

    Ahhh OK turned off cache on server.. It goes though the motions now and comes back to the main screen (no more server error) .But doesn't log me in. If I use your debug mode there is no error shown
  9. AndyC

    oneall.com Module

    It now looks like this // We could not extract the data. if ($have_error) { $back = trim(Tools::getValue('back')); $back = (!empty($back) ? $back : oneall_social_login_tools::get_current_url()); Tools::redirect($back);
  10. AndyC

    oneall.com Module

    OK have installed your module .Did as asked ,now getting Too few arguments to function ToolsCore::redirect(), 0 passed in /home/u564696606/domains/pewterworld.co.uk/public_html/modules/oneallsociallogin/controllers/front/register.php on line 161 and at least 1 expected in file classes/Tools.php at line 152 Source file: classes/Tools.php 133: try { 134: return random_bytes($length); 135: } catch (Exception $e) {} 136: } 137: 138: return ''; 139: } 140: 141: /** 142: * Redirect user to another page 143: * 144: * @param string $url Desired URL 145: * @param string $baseUri Base URI (optional) 146: * @param Link $link 147: * @param string|array $headers A list of headers to send before redirection 148: * 149: * @since 1.0.0 150: * @version 1.0.0 Initial version 151: */ 152: public static function redirect($url, $baseUri = __PS_BASE_URI__, Link $link = null, $headers = null) 153: { 154: if (!$link) { 155: $link = Context::getContext()->link; 156: } 157: 158: if (strpos($url, 'http://') === false && strpos($url, 'https://') === false && $link) { 159: if (strpos($url, $baseUri) === 0) { 160: $url = substr($url, strlen($baseUri)); 161: } 162: if (strpos($url, 'index.php?controller=') !== false && strpos($url, 'index.php/') == 0) { Stack trace 1. modules/oneallsociallogin/controllers/front/register.php:161 source ToolsCore::redirect() 2. classes/controller/Controller.php:208 source OneAllSocialLoginRegisterModuleFrontController->initContent() 3. classes/controller/FrontController.php:255 source ControllerCore->run() 4. classes/Dispatcher.php:852 source FrontControllerCore->run() 5. ./index.php:33 source DispatcherCore->dispatch()
  11. AndyC

    oneall.com Module

    OK downloaded the error and decrypted.. But yes it is different now Decoded exception syntax error, unexpected end of file in file modules/oneallsociallogin/controllers/front/register.php at line 164 Source file: modules/oneallsociallogin/controllers/front/register.php 145: $smarty->assign('oasl_last_name', (isset($data['user_last_name']) ? $data['user_last_name'] : '')); 146: $smarty->assign('oasl_newsletter', 1); 147: } 148: 149: // Assign template vars. 150: $smarty->assign('identity_provider', $data['identity_provider']); 151: $smarty->assign('oasl_register', $this->context->link->getModuleLink('oneallsociallogin', 'register')); 152: 153: // Show our template. 154: $this->setTemplate('oneallsociallogin_register.tpl'); 155: } 156: } 157: 158: // We could not extract the data. 159: if ($have_error) 160: { 161: $back = trim(Tools::getValue('back')); 162: $back = (!empty($back) ? $back : oneall_social_login_tools::get_current_url()); 163: Tools::redirect($back); 164: } Stack trace 1. ./index.php:33 source DispatcherCore->dispatch()
  12. AndyC

    oneall.com Module

    Don't know where my last post went .. But this is what it looks like now .Am still getting a server error // Show our template. $this->setTemplate('oneallsociallogin_register.tpl'); } } // We could not extract the data. if ($have_error) { $back = trim(Tools::getValue('back')); $back = (!empty($back) ? $back : oneall_social_login_tools::get_current_url()); Tools::redirect($back); }
  13. AndyC

    oneall.com Module

    class OneAllSocialLoginRegisterModuleFrontController extends ModuleFrontController { public $auth = false; public $ssl = true; /** * Assign template vars related to page content */ public function initContent() { parent::initContent(); global $smarty; // Restore back value. $back = Tools::getValue('back'); if (!empty($back)) { $this->context->smarty->assign('back', Tools::safeOutput($back)); } // Did an error occur? $have_error = true; // The cookie is required to proceed. if (isset($this->context->cookie->oasl_data)) { // Extract the data. $data = json_decode($this->context->cookie->oasl_data, true); // Check data format. if (is_array($data)) { $have_error = false; // Submit Button Clicked if (Tools::isSubmit('submit')) { // Reset Errors. $this->errors = array(); // Read fields. $email = trim(Tools::getValue('oasl_email')); $firstname = trim(Tools::getValue('oasl_firstname')); $lastname = trim(Tools::getValue('oasl_lastname')); $newsletter = intval(Tools::getValue('oasl_newsletter')); // Make sure the firstname is not empty. if (strlen($firstname) == 0) { $this->errors[] = Tools::displayError('Please enter your first name'); } // Make sure the format of the firstname is correct. elseif (!Validate::isName($firstname)) { $this->errors[] = Tools::displayError('Please enter a valid first name'); } // Make sure the lastname is not empty. if (strlen($lastname) == 0) { $this->errors[] = Tools::displayError('Please enter your lastname'); } // Make sure the format of the lastname is correct. elseif (!Validate::isName($lastname)) { $this->errors[] = Tools::displayError('Please enter a valid last name'); } // Make sure the email address it is not empty. if (strlen($email) == 0) { $this->errors[] = Tools::displayError('Please enter your email address'); } // Make sure the format of the email address is correct. elseif (!Validate::isEmail($email)) { $this->errors[] = Tools::displayError('Please enter a valid email address'); } // Make sure the email address is not already taken. elseif (oneall_social_login_tools::get_id_customer_for_email_address($email) !== false) { $this->errors[] = Tools::displayError('This email address is already taken'); } // We are good to go. if (count($this->errors) == 0) { // Store the manually entered email fields. $data['user_email'] = strtolower($email); $data['user_first_name'] = ucwords(strtolower($firstname)); $data['user_last_name'] = ucwords(strtolower($lastname)); $data['user_newsletter'] = ($newsletter == 1 ? 1 : 0); // Email flags. $send_email_to_admin = ((Configuration::get('OASL_EMAIL_ADMIN_DISABLE') != 1) ? true : false); $send_email_to_customer = ((Configuration::get('OASL_EMAIL_CUSTOMER_DISABLE') != 1) ? true : false); // Create a new account. $id_customer = oneall_social_login_tools::create_customer_from_data($data, $send_email_to_admin, $send_email_to_customer); // Login the customer. if (!empty($id_customer) and oneall_social_login_tools::login_customer($id_customer)) { // Remove the data unset($this->context->cookie->oasl_data); // A refresh is required to update the page $back = trim(Tools::getValue('back')); $back = (!empty($back) ? $back : oneall_social_login_tools::get_current_url()); Tools::redirect($back); } } } // First call of the page. else { $smarty->assign('oasl_populate', 1); $smarty->assign('oasl_email', (isset($data['user_email']) ? $data['user_email'] : '')); $smarty->assign('oasl_first_name', (isset($data['user_first_name']) ? $data['user_first_name'] : '')); $smarty->assign('oasl_last_name', (isset($data['user_last_name']) ? $data['user_last_name'] : '')); $smarty->assign('oasl_newsletter', 1); } // Assign template vars. $smarty->assign('identity_provider', $data['identity_provider']); $smarty->assign('oasl_register', $this->context->link->getModuleLink('oneallsociallogin', 'register')); // Show our template. $this->setTemplate('oneallsociallogin_register.tpl'); } } // We could not extract the data. if ($have_error) { Tools::redirect(); } } }
  14. AndyC

    oneall.com Module

    Sorry for the late reply .tried that and still going to server error as that code is already there Tools::redirect();
  15. AndyC

    oneall.com Module

    Thank you link is https://github.com/oneall/social-login-prestashop/tree/prestashop/1.6.x
×
×
  • Create New...