Jump to content

Tekker

Members
  • Posts

    19
  • Joined

  • Last visited

Tekker's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hoi, bedankt alvast voor je tijd. We hebben al die standard opties al uitgeput en vinden niets, we hebben ook de site al laten draaien zonder enige module, zonder positief resultaat... Eveneens lokaal testen haalt niets uit, vinden niets verdachts. Je zou denken dan DNS, maar heb verschillende sites draaien op deze server (zelfde DNS provider) en alles loopt als een trein (SSD, CMS server), ook Prestashops BTW
  2. Hi guy's ! Simple question, hard answer.... Onze site staat al paar jaar online, vele updates en upgrades ondergaan, vele modules en veel aangepaste code door ons en derden. Nu onze site is vrij ok van snelheid, behalve de homepage, wat toch wel een landingspagina is. Onze host ziet dat het tot 6 seconden duurt voor hij begint te laden maar ziet in de logs (beperkte) geen aanwijzing. We zijn er al jaren naar op zoek dus daarom vrij moeilijk veronderstel ik. https://tools.pingdom.com/#!/bfROrM/http://cookalike.be Je ziet dat alles vrij snel laad, behalve de derde en de aanvang reroute: http://www.cookalike.be/en/ Enig idee hier, hoe we dit kunnen uit vissen aub?
  3. The links seems fine to me, they just direct me, once I click them. http://www.***/***/index.php?controller=AdminModules&token=548bf4668f466357a14d278c460c750 http://www.***/***/index.php?controller=AdminPayment&token=3c0fc904e5af6a4f1dbb8498eda0296
  4. Hi, As title indicates, some buttons in my BO, direct me straight to my / on the main Front Office page ? Any idea how this all of a sudden can happen ? I already tried to enable error messages, but nothing appear ... Buttons that redirect me: Modules -> Modules! Modules -> Payment Search button on everywhere All the rest is working as intended....
  5. Greetings, Something weird: When I upload a product-picture all is fine. When my client upload a picture, it is pointing to wrong url. With desktop sharing I tried with my login, same problem, not to right url. In backoffice all pictures are showing right, even when you view full scale. Example: http://ddmechanics.wearewired.be/img/p/6/6/8/668.jpg -> works when I upload ! (Picture is offline as we speak) http://ddmechanics.be/668-thickbox_default/neuswiel-pvc-velg-buis-35-mm-.jpg --> doesn't work on other PC ... I can imagin it has to do with Friendly URL, but when I disable, website isn't functioning 100% and can't try to look at pictures .... I'm lost for words right now, it all worked great before, all of a sudden, bang, this happened. Any idea's ? Thanks If needed I can donate piece of a Bitcoin, if answer can solve my problem.
  6. Hi, I want to find someone who can build a quite complicated module... Regards Tekker
  7. idd, does let me disappear menu as well, with commenting out line 281. And I have the same 500 error when enabling cash
  8. Hallo, Heb hier een half probleem dat me de haren uit mijn hoofd kost Nu wil ik de shipping manager van bPost installeren, en stoot op een error waar niet echt veel is over te vinden. Deze topic is zowat de enige die ik hierover mee kan vergelijken: http://www.prestasho...-colissimo-273/ De error start vanaf ik bpost module install en/of upload via FTP. En met start bedoel ik, vanaf hij op de server staat, kan ik niet meer in mijn modules pagina van BO, de error verschijnt. Dit is de error na mijn :define('_PS_MODE_DEV_', true); Fatal error: require() [<a href='function.require'>function.require</a>]: Cannot redeclare class carriermodulecore in */cookalike.be/classes/Autoload.php on line 95 [PrestaShop] Fatal error in module Autoload: require() [function.require]: Cannot redeclare class carriermodulecore Het leuke is dat deze module perfect werkt op net dezelfde versie PS 1.5.4.0 clean install draaiende shop. Degene waar de error op vervalt is een upgrade van 1.3.7 Enig idee wat ik hieraan kan doen ... ? bij voorbaat dank !
  9. Like explained in PM, I'll send those files in PM, not that I care to much that people steal this module, TM won't help anyway,, but still ... So PM send with those 2 files, they are kinda short.
  10. Hey thanks for your time and hints but that function directly I cannot find... I'll past you the full code ! <?php function getContent() { global $cookie; /* Languages preliminaries */ $defaultLanguage = intval(Configuration::get('PS_LANG_DEFAULT')); $languages = Language::getLanguages(); $iso = Language::getIsoById($defaultLanguage); $isoUser = Language::getIsoById(intval($cookie->id_lang)); /* display the module name */ $this->_html = '<h2>'.$this->displayName.' '.$this->version.'</h2>'; /* update the editorial xml */ if (isset($_POST['submitUpdate'])) { // Generate new XML data $newXml = '<?xml version=\'1.0\' encoding=\'utf-8\' ?>'."\n"; $newXml .= '<links>'."\n"; $i = 0; foreach ($_POST['link'] as $link) { $newXml .= ' <link>'; foreach ($link AS $key => $field) { if ($line = $this->putContent($newXml, $key, $field)) $newXml .= $line; } /* upload the image */ if (isset($_FILES['link_'.$i.'_img']) AND isset($_FILES['link_'.$i.'_img']['tmp_name']) AND !empty($_FILES['link_'.$i.'_img']['tmp_name'])) { Configuration::set('PS_IMAGE_GENERATION_METHOD', 1); if ($error = checkImage($_FILES['link_'.$i.'_img'], $this->maxImageSize)) $this->_html .= $error; elseif (!$tmpName = tempnam(_PS_TMP_IMG_DIR_, 'PS') OR !move_uploaded_file($_FILES['link_'.$i.'_img']['tmp_name'], $tmpName)) return false; elseif (!imageResize($tmpName, dirname(__FILE__).'/slides/slide_0'.$i.'.jpg')) $this->_html .= $this->displayError($this->l('An error occurred during the image upload.')); unlink($tmpName); } if ($line = $this->putContent($newXml, 'img', 'slides/slide_0'.$i.'.jpg')) $newXml .= $line; $newXml .= "\n".' </link>'."\n"; $i++; } $newXml .= '</links>'."\n"; /* write it into the editorial xml file */ if ($fd = @fopen(dirname(__FILE__).'/links.xml', 'w')) { if (!@fwrite($fd, $newXml)) $this->_html .= $this->displayError($this->l('Unable to write to the editor file.')); if (!@fclose($fd)) $this->_html .= $this->displayError($this->l('Can\'t close the editor file.')); } else $this->_html .= $this->displayError($this->l('Unable to update the editor file.<br />Please check the editor file\'s writing permissions.')); } if (Tools::isSubmit('submitUpdate')) { $output = '<div class="conf confirm"><img src="../img/admin/ok.gif" alt="'.$this->l('Confirmation').'" />'.$this->l('Settings updated').'</div>'; } /* display the editorial's form */ $this->_displayForm(); return $this->_html; } static private function getXmlFilename() { return 'links.xml'; } private function _getXml() { if (file_exists(dirname(__FILE__).'/'.$this->getXmlFilename())) { if ($xml = @simplexml_load_file(dirname(__FILE__).'/'.$this->getXmlFilename())) return $xml; } return false; } public function _getFormItem($i, $last) { global $cookie; $this->_xml = $this->_getXml(); $isoUser = Language::getIsoById(intval($cookie->id_lang)); $divLangName = 'texts'.$i; $output = ' <div class="item" id="item'.$i.'" style="position:relative;"> <h3>'.$this->l('Item #').($i+1).'</h3> <input type="hidden" name="item_'.$i.'_item" value="" />'; $output .= ' <label>'.$this->l('Slide image').'</label> <div class="margin-form"> <div><img src="'.$this->_path.'slides/slide_0'.$i.'.jpg" alt="" title="" style="width:250px; height:auto;" /></div> <input type="file" name="link_'.$i.'_img" /> <p style="clear: both"></p> </div>'; $output .= ' <label>'.$this->l('Slide URL').'</label> <div class="margin-form" style="padding-left:0"> <input type="text" name="link['.$i.'][url]" size="64" value="'.$this->_xml->link[$i]->url.'" /> <p style="clear: both"></p> </div>'; $output .= '<fieldset style="font-size:1em;">'; $output .= '<div style="position:absolute;">'; $output .= $this->displayFlags($this->_languages, $this->_defaultLanguage, $divLangName , 'texts'.$i, true); $output .= '</div>'; foreach ($this->_languages as $language) { $output .= '<div id="texts'.$i.'_'.$language['id_lang'].'" style="display:'.($language['id_lang'] == $this->_defaultLanguage ? 'block' : 'none').';">'; $output .= ' <label>'.$this->l('Field #1').'</label> <div class="margin-form" style="padding-left:0"> <input type="text" name="link['.$i.'][field1_'.$language['id_lang'].']" size="64" value="'.$this->_xml->link[$i]->{'field1_'.$language['id_lang']}.'" /> <p style="clear: both"></p> </div>'; $output .= ' <label>'.$this->l('Field #2').'</label> <div class="margin-form" style="padding-left:0"> <input type="text" name="link['.$i.'][field2_'.$language['id_lang'].']" size="64" value="'.$this->_xml->link[$i]->{'field2_'.$language['id_lang']}.'" /> <p style="clear: both"></p> </div>'; $output .= '</div>'; } $output .= '</fieldset>'; $output .= ' <div class="clear pspace"></div> '.($i >= 0 ? '<a href="javascript:{}" onclick="removeDiv(\'item'.$i.'\')" style="color:#EA2E30"><img src="'._PS_ADMIN_IMG_.'delete.gif" alt="'.$this->l('delete').'" />'.$this->l('Delete this item').'</a>' : '').' <hr/></div>'; return $output; } private function _displayForm() { global $cookie; /* Languages preliminaries */ $defaultLanguage = intval(Configuration::get('PS_LANG_DEFAULT')); $languages = Language::getLanguages(); $iso = Language::getIsoById($defaultLanguage); $isoUser = Language::getIsoById(intval($cookie->id_lang)); /* xml loading */ $xml = false; if (file_exists(dirname(__FILE__).'/links.xml')) if (!$xml = @simplexml_load_file(dirname(__FILE__).'/links.xml')) $this->_html .= $this->displayError($this->l('Your links file is empty.')); $this->_html .= ' <script type="text/javascript"> function removeDiv(id) { $("#"+id).fadeOut("slow"); $("#"+id).remove(); } function cloneIt(cloneId) { var currentDiv = $(".item:last"); var id = ($(currentDiv).size()) ? $(currentDiv).attr("id").match(/[0-9]/gi) : -1; var nextId = parseInt(id) + 1; $.get("'._MODULE_DIR_.$this->name.'/ajax.php?id="+nextId, function(data) { $("#items").append(data); }); $("#"+cloneId).remove(); } </script> <form method="post" action="'.$_SERVER['REQUEST_URI'].'" enctype="multipart/form-data"> <fieldset style="width: 800px;"> <legend><img src="'.$this->_path.'logo.gif" alt="" title="" /> '.$this->displayName.'</legend> <div id="items">'; $i = 0; foreach ($xml->link as $link) { $last = ($i == (count($xml->link)-1) ? true : false); $this->_html .= $this->_getFormItem($i, $last); $i++; } $this->_html .= ' </div> <a id="clone'.$i.'" href="javascript:cloneIt(\'clone'.$i.'\')" style="color:#488E41"><img src="'._PS_ADMIN_IMG_.'add.gif" alt="'.$this->l('add').'" /><b>'.$this->l('Add a new item').'</b></a>'; $this->_html .= ' <div class="margin-form clear"> <div class="clear pspace"></div> <div class="margin-form"> <input type="submit" name="submitUpdate" value="'.$this->l('Save').'" class="button" /> </div> </div> </fieldset> </form>'; } function hookTop($params) { global $cookie; /* Languages preliminaries */ $defaultLanguage = intval(Configuration::get('PS_LANG_DEFAULT')); $languages = Language::getLanguages(); $iso = Language::getIsoById($defaultLanguage); $isoUser = Language::getIsoById(intval($cookie->id_lang)); if (file_exists(dirname(__FILE__).'/links.xml')) if ($xml = simplexml_load_file(dirname(__FILE__).'/links.xml')) { global $cookie, $smarty; $smarty->assign(array( 'xml' => $xml, 'field1' => 'field1_'.$cookie->id_lang, 'field2' => 'field2_'.$cookie->id_lang, 'this_path_tmpics' => $this->_path )); return $this->display(__FILE__, 'tmpics.tpl'); } return false; } } ?>
  11. Greetings, I get this error during uploading a image in a template module. It's the only error I get after updating to 1.5.4 I tried a bunch of things but I'm a bit dazzled, can anyone see what is wrong here ? Thanks in advance! This is the error I get on a blank browser page: [PrestaShop] Fatal error in module tmpics: Call to undefined function checkImage() This is my checkimage code ... /* upload the image */ if (isset($_FILES['link_'.$i.'_img']) AND isset($_FILES['link_'.$i.'_img']['tmp_name']) AND !empty($_FILES['link_'.$i.'_img']['tmp_name'])) { Configuration::set('PS_IMAGE_GENERATION_METHOD', 1); if ($error = checkImage($_FILES['link_'.$i.'_img'], $this->maxImageSize)) $this->_html .= $error; elseif (!$tmpName = tempnam(_PS_TMP_IMG_DIR_, 'PS') OR !move_uploaded_file($_FILES['link_'.$i.'_img']['tmp_name'], $tmpName)) return false; elseif (!imageResize($tmpName, dirname(__FILE__).'/slides/slide_0'.$i.'.jpg')) $this->_html .= $this->displayError($this->l('An error occurred during the image upload.')); unlink($tmpName); } if ($line = $this->putContent($newXml, 'img', 'slides/slide_0'.$i.'.jpg')) $newXml .= $line; $newXml .= "\n".' </link>'."\n"; $i++; } $newXml .= '</links>'."\n";
  12. Hello, Com'n this upgrade is not thought through. I understand database need upgrades no problem there. But please can the upgrades be provided ? This is seriously amateurism in the highest degree. You have tools to update databases from other e-commerce platform, but you can't even migrate your own db. Why can't you have a import tool that works together with the backup tool from earlier versions? So you can just install the new version, import the db and copy/)paste you img folder? This can't be so hard, right, many forum platforms use this with no problem at all. I only read problems from people here on the forum and myself need to upgrade from version X, to version, to version, to version, to version, to version untill we end up with latest 1.5.3 It could be so easy. Just a dB tool that can convert different versions databases and solved !
  13. Bedankt voor je reactie ! Had de footer al disabled, en geeft geen verschil. Heb dit probleem toch al op 2 verschillende PC's gehad, vooral op XP machines met de oudere ie 7 zoals bewezen bij browsershots ... Als je goed kijkt hé naast de "aanbevolen producten" staat een 1px lijntje extra tot in de helft +/-, dit bezorgd me de problemen, als ik dit verleng met 'min-height: xxpx' werkt het, maar dan is men "Assortiment" blok volledig uitgerokken
×
×
  • Create New...