Jump to content

max565

New Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

max565's Achievements

Newbie

Newbie (1/14)

  • One Year In Rare
  • First Post Rare
  • Week One Done Rare
  • One Month Later Rare
  • Reacting Well Rare

Recent Badges

0

Reputation

  1. I wanted to try out prestashop. I tried to install a fresh install. It always fails at this step: Create databases tables 1: HTTP 500 - error- An error occurred during installation... You can use the links on the left column to go back to the previous steps, or restart the installation process by clicking here. When i try to restart the installation by clicking on the link i see: https://mysite.com/shop/install/index.php?restart=true I tried 2 different versions of prestashop and i get the same issue -- PrestaShop 1.7.8.10 PrestaShop 8.1.7 PHP Version 7.4.33 DOM/XML enabled libXML support active SimpleXML support enabled Server information: Linux #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 Server software version: LiteSpeed Memory limit: 512M Max execution time: 300 Upload Max File size: 512M MySQL version: 10.6.19-MariaDB-cll-lve MySQL server: 127.0.0.1 Tables prefix: ps_ MySQL engine: InnoDB MySQL driver: DbPDO Notice: Undefined property: DOMDocument::$documentElement in /home/max/mysite.com/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 590 Fatal error: Uncaught Error: Call to a member function getAttributeNS() on null in /home/max/mysite.com/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:590 Stack trace: #0 /home/max/mysite.com/shop/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(89): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->validateSchema(Object(DOMDocument), false) #1 /home/max/mysite.com/shop/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(146): Symfony\Component\Config\Util\XmlUtils::parse('<?xml version="...', Array) #2 /home/max/mysite.com/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(397): Symfony\Component\Config\Util\XmlUtils::loadFile('/home/max/...', Array) #3 /home/max/mysite.com/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(49): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->parseFi in /home/max/mysite.com/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 590
  2. @Manuel_GT thanks you sir. it worked. hopefully this will stop the bots but bots are smart. maybe next time i can add . subtraction, division, and times if anyone wants the files. 3 files inside captcha.zip captcha.zip
  3. Steve Joms Can you update this for 2023 or prestashop version 1.7.8.10 Your guide doesn't work for the newest version of prestashop I keep getting spam everyday and there is no way to stop this unless we add your guide public_html/shop/themes/classic/modules/contactform/views/templates/widget/contactform.tpl after [code] {l s='optional' d='Shop.Forms.Help'} </span> </div> {/if} [/code] [code] <p class="form-group"> <br> <label for="mathCaptcha">{l s='Number captcha (Robot checking):'}</label><br> <input type"text" id="mathNumber1" name="mathNumber1" value="{$mathNumber1}" hidden="true" /> <input type"text" id="mathNumber2" name="mathNumber2" value="{$mathNumber2}" hidden="true" /> {$mathNumber1} + {$mathNumber2} = <input type="text" id="mathAnswer" name="mathAnswer" autocomplete="off"/> <br> <br> </p> [/code] public_html/shop/controllers/front/ContactController.php after [code] public function initContent() { parent::initContent(); [/code] [code] $this->context->smarty->assign('mathNumber1',rand(1,10)); $this->context->smarty->assign('mathNumber2',rand(1,10)); [/code] public_html/shop/modules/contactform/contactform.php after [code] $this->contact['contacts'] = $this->getTemplateVarContact(); $this->contact['message'] = Tools::getValue('message'); [/code] [code] $mathAnswer = Tools::getValue('mathAnswer'); $mathNumber1 = Tools::getValue('mathNumber1'); $mathNumber2 = Tools::getValue('mathNumber2'); $mathSum = $mathNumber1 + $mathNumber2; [/code] after [code] $this->context->controller->errors[] = $this->trans( 'Bad file extension', [], 'Modules.Contactform.Shop' ); return; } [/code] [code] elseif(!$mathAnswer){ $this->errors[] = Tools::displayError('The answer must not be blank'); } elseif($mathSum!=$mathAnswer){ $this->errors[] = Tools::displayError('The answer is wrong'); } [/code] i tried that and i see the math question but it doesn't verify the math. The message still goes through
  4. I installed PrestaShop freshly and have not modified it much. My shop url is SSL HTTPS and browsers show it as secure. Under the settings Administrator>Configure>Advanced Parameters>Information>Store Information The "Shop URL" is showing up as http://myprestashopdomain.com It's not showing up as https://myprestashopdomain.com Shouldn't it be showing up as https In the traffic SEO & URLS i have the following urls Shop Domain: myprestashopdomain.com SSl domain: myprestashopdomain.com I tried changing it to https://myprestashopdomain.com and savings it but then when i go to my shop it goes to https://httpmyprestashopdomain.com It adds the https:// but i see https added as well. My PrestaShop Version: 1.7.8.7 It's not giving me problems. I'm just wondering if i setup correctly
×
×
  • Create New...