Jump to content

Truffelstunter

Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • First Name
    Sophie
  • Last Name
    Obelink

Truffelstunter's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. anybody with a more recent fix for this? i dont have the mentioned lines at that place, for both of the fixes
  2. I have upgraded our account and its gotten a little better but still the same errors.
  3. nobody can do this? im a noob but i thought this would be a piece of cookie
  4. found this and treid to get it work probably for an old version of prestashop. But it does excatly what i need, so if anybody kknow how to modify it so it should work on recent prestashopversions i would be very grateful and i think more people will also! In this tutorial, we show a code to restrict the user the age of 18 as the minimum age. To do this, the validation class (class / Validation.php) that birthday check is used. But we use the override to avoid modifying core files of PrestaShop. First, create a new php file called Validation.php, and put this content: class Validate extends ValidateCore { public static function isBirthDate($date) { if (empty($date) || $date == '0000-00-00') return false; if (preg_match('/^([0-9]{4})-((?:0?[1-9])|(?:1[0-2]))-((?:0?[1-9])|(?:[1-2][0-9])|(?:3[01]))([0-9]{2}:[0-9]{2}:[0-9]{2})?$/', $date, $birth_date)) { if ((floor((time() - strtotime($date))/31556926))<18) return false; if ($birth_date[1] > date('Y') && $birth_date[2] > date('m') && $birth_date[3] > date('d')) return false; return true; } return false; } } and copy this file to overrides/classes directory of PrestaShop. After that, delete the file cache/class_index.php to load the new override and thats all
  5. im a noob i found this error in the log in cpanel [Wed Oct 12 19:40:21.244059 2016] [:error] [pid 154061] (12)Cannot allocate memory: [client 82.74.14.122:59436] couldn't create child process: /opt/suphp/sbin/suphp for /home/detruf1q/public_html/index.php, referer: http://detruffelstunter.nl/admin888/index.php?controller=AdminDashboard&token=f7bcd8a9d9d32d4627d607d5d555eae2 [Wed Oct 12 19:40:21.243932 2016] [:error] [pid 154545] (12)Cannot allocate memory: [client 82.74.14.122:59434] couldn't create child process: /opt/suphp/sbin/suphp for /home/detruf1q/public_html/index.php, referer: http://detruffelstunter.nl/admin888/index.php?controller=AdminDashboard&token=f7bcd8a9d9d32d4627d607d5d555eae2 what is it? and what can i do about it?
  6. i have the spinning button problem below a copy paste of the error log from cpanel [Wed Oct 12 19:40:21.244059 2016] [:error] [pid 154061] (12)Cannot allocate memory: [client 82.74.14.122:59436] couldn't create child process: /opt/suphp/sbin/suphp for /home/detruf1q/public_html/index.php, referer: http://detruffelstunter.nl/admin888/index.php?controller=AdminDashboard&token=f7bcd8a9d9d32d4627d607d5d555eae2 [Wed Oct 12 19:40:21.243932 2016] [:error] [pid 154545] (12)Cannot allocate memory: [client 82.74.14.122:59434] couldn't create child process: /opt/suphp/sbin/suphp for /home/detruf1q/public_html/index.php, referer: http://detruffelstunter.nl/admin888/index.php?controller=AdminDashboard&token=f7bcd8a9d9d32d4627d607d5d555eae2 [Wed Oct 12 19:40:21.242877 2016] [:error] [pid 154061] (12)Cannot allocate memory: [client 82.74.14.122:59436] couldn't create child process: /opt/suphp/sbin/suphp for /home/detruf1q/public_html/admin888/index.php, referer: http://detruffelstunter.nl/admin888/index.php?controller=AdminDashboard&token=f7bcd8a9d9d32d4627d607d5d555eae2 sorry for the double post. the forum gave me an error (probably for copy pasting the whole error log
  7. The shopping cart icon en new customer icons in the top left from the backoffice keeps notifying of new orders and customers but i have already seen those. When i click on them the number dissapeers but when i refresh it comes back everytime havent changed any settings.
×
×
  • Create New...