Jump to content

kornfr333k

Members
  • Posts

    32
  • Joined

  • Last visited

Profile Information

  • Location
    bucharest
  • Activity
    Agency

Recent Profile Visitors

2,478,369 profile views

kornfr333k's Achievements

  1. i found the problem also. The theme i was using (Warehouse) had a security flaw in 4 modules (mainly for displaying images in various positions) and the site was infected via those modules. I was injected with a couple of scripts that uploaded other masked scripts into the slides folders. The hack didn't work all the way because some files in the scripts were 2 years older than the PS version so the Front-end kept full functionality. So basically, i manually checked every folder in presta to see if there were any files recently modified and sure enough i find a file called xboo.php injected in the classes>controller folder along with a new .htaccess file that overrided every other controller in admin. so i did a full virus scan from the Cpanel interface and detected all the infected files. After i deleted them, i noticed that i was still unable to access the BO so i thought it was permanently damaged. But at the last moment i noticed that the login link was calling for the AdminLogin controller so i decided to check that one also. The controller was missing, probably deleted by the malware. I restored the AdminLogin controller in the right folder from a fresh install, and everything went back on. Now i can login in the BO For me it wasn't the SSL case. So maybe do a virus scan occasionaly, and check freshly modified files regularly. Cheers
  2. I have the same issue for a while know, and i have been searching for a solution with no luck. The frontend works fine, but i cannot login in the backend - i get the ERR_TOO_MANY_REDIRECTS and clear cookies error. I have tried every single possible fix i found over web, contacted hosting to check for something wrong there, done a virus scan, manually checked files for malware, deleted modules from ftp.... nothing. I have tried restoring the entire site and DB to all available restore points in my hosting, checked various devices with various providers, replacing some files with original install ones... same thing. Presta version is 1.6.0.9.. i think I think i might have to make a new site.
  3. hi guys, i have some problems with tinyMce or Javascript in the backend. Some pages that contain text editors are not loading properly, and i can't edit text or use any of the buttons, regardless of the fact that they are not tinyMCE related. I think it crashes JS Product edit page works correctly. The megamenu edit page is not loading correctly, and another module that uses tinyMCE. Please check the attached files I checked Chrome and i get the following error: Uncaught ReferenceError: tinySetup is not defined at HTMLDocument.<anonymous> (index.php?controller=AdminModules&configure=iqitmegamenu&tab_module=front_office_features&module_name=iqitmegamenu&token=c9ce6996a657237c5a69e6dc5fcb45ee:7183) - this changes in relation to the page i am trying to load at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at Function.ready (jquery-1.11.0.min.js:2) at HTMLDocument.K (jquery-1.11.0.min.js:2) I have the following files and code: js/tinymce.inc.js function tinySetup(config) { if(!config) config = {}; //var editor_selector = 'rte'; //if (typeof config['editor_selector'] !== 'undefined') //var editor_selector = config['editor_selector']; if (typeof config['editor_selector'] != 'undefined') config['selector'] = '.'+config['editor_selector']; // safari,pagebreak,style,table,advimage,advlink,inlinepopups,media,contextmenu,paste,fullscreen,xhtmlxtras,preview default_config = { selector: ".rte" , plugins : " fieldsetcontrols visualblocks, preview searchreplace print insertdatetime, hr charmap colorpicker anchor code link image paste pagebreak table contextmenu filemanager table code media textcolor emoticons shortcode advlist fullpage fullscreen", toolbar2 : "newdocument,print,|,bold,italic,underline,|,strikethrough,superscript,subscript,|,forecolor,colorpicker,backcolor,|,bullist,numlist,outdent,indent", toolbar1 : "styleselect,|,formatselect,|,fontselect,|,fontsizeselect,", toolbar3 : "shortcode, code,|,table,|,cut,copy,paste,alignleft,aligncenter ,alignright,alignjustify, ,searchreplace,|,blockquote,|,undo,redo,|,link,unlink,anchor,|,image,emoticons,media,|,inserttime,|,preview,fullpage,fullscreen, ", toolbar4 : "visualblocks,|,charmap,|,hr,|,removeformat,|,addfieldset ,delfieldset,pasteword,pastetex", external_filemanager_path: ad+"/filemanager/", filemanager_title: "File manager" , external_plugins: { "filemanager" : ad+"/filemanager/plugin.min.js"}, extended_valid_elements: 'pre[*],script[*],style[*]', valid_children: "+body[style|script],pre[script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]", valid_elements : '*[*]', force_p_newlines : false, cleanup: false, forced_root_block : false, force_br_newlines : true, width: 1000, height: 500, relative_urls : false, remove_script_host : false, convert_urls : true, menu: { edit: {title: 'Edit', items: 'undo redo | cut copy paste | selectall'}, insert: {title: 'Insert', items: 'media image link | pagebreak'}, view: {title: 'View', items: 'visualaid'}, format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat'}, table: {title: 'Table', items: 'inserttable tableprops deletetable | cell row column'}, tools: {title: 'Tools', items: 'code'} } } $.each(default_config, function(index, el) { if (config[index] === undefined ) config[index] = el; }); tinyMCE.init(config); }; $().ready(function() { tinySetup(); }); classes/Validate.php with the code: public static function isCleanHtml($html, $allow_iframe = false) { return true; } I have tried all solutions that i could find over web and in the forum with no luck. - replaced admin, js, classes and override files with original ones - replaced all tinymce files with original ones - i've downloaded the latest 1.6 version of prestas and tried to use those files. - i've disabled all CCC options, disabled cache, disabled most of the modules, including statistics and blog related modules. - cleared cache multiple times, cleared browser history and cookies, renamed admin folder to a different name. NOTHING Worked Right now i am not able to edit my menu and some other info. And it also crashes the main backend menu. Tested in Chrome and Edge.
  4. If you use the Warehouse theme then it's the same issue. If you haven't already, please make sure you buy this theme. It is very usefull when important updates occur, and also the guy that made it is very helpfull. Modify prestashopinstallation/modules/megamenuiqit/js/admin2.js to this: $(document).ready(function(){ var exids2 = ''; $('#product_autocomplete_inputm').autocomplete('ajax_products_list.php', { minChars: 1, autoFill: true, max:20, matchContains: true, mustMatch:true, dataType: 'json', extraParams: { excludeIds : exids2, format: 'json' }, parse: function(data) { var parsed = []; if (data == null) return true; for (var i = 0; i < data.length; i++) { parsed[parsed.length] = { data: data, value: data.name, result: data.name }; } return parsed; }, formatItem: function(item) { return item.id + ' - ' + item.name ; }, cacheLength:0, }).result(function(event, data, formatted) { if (data == null) return false; var productId = data.id; var productName = data.name; $('#right_product_id_curr').html(productName + '(ID: ' + productId + ')'); $('#right_product_id').val(productId); }); var exids = $('#leftproductsitemsInput').val().replaceAll('PRD', ''); $('#leftproduct_autocomplete_input').autocomplete('ajax_products_list.php', { minChars: 1, autoFill: true, max:20, matchContains: true, mustMatch:true, dataType: 'json', extraParams: { excludeIds : exids2, format: 'json' }, parse: function(data) { var parsed = []; if (data == null) return true; for (var i = 0; i < data.length; i++) { parsed[parsed.length] = { data: data, value: data.name, result: data.name }; } return parsed; }, formatItem: function(item) { return item.id + ' - ' + item.name ; }, cacheLength:0, }).result(function(event, data, formatted) { if (data == null) return false; var productId = data.id; var productName = data.name; val = "PRD"+productId; $("#leftproductsitems").append("<option value=\""+val+"\">"+productId + '-' + productName + "</option>"); $('#leftproduct_autocomplete_input').val(''); serialize_leftproducts(); }); function getLeftProductIds() { if ($('#leftproductsitemsInput').val() === undefined) return ''; var ids = $('#leftproductsitemsInput').val().replaceAll('PRD', ''); return ids; } $("#leftproductsremoveItem").click(remove_leftproducts); $("#leftproductsitems").dblclick(remove_leftproducts); function add_leftproducts() { $("#leftproductsavailableItems option:selected").each(function(i){ var val = $(this).val(); var text = $(this).text(); text = text.replace(/(^\s*)|(\s*$)/gi,""); $("#leftproductsitems").append("<option value=\""+val+"\">"+text+"</option>"); }); serialize_leftproducts(); return false; } function remove_leftproducts() { $("#leftproductsitems option:selected").each(function(i){ $(this).remove(); }); serialize_leftproducts(); return false; } function serialize_leftproducts() { var options = ""; $("#leftproductsitems option").each(function(i){ options += $(this).val()+","; }); $("#leftproductsitemsInput").val(options.substr(0, options.length - 1)); } });
  5. For the mega-menu, it was a module related issue, and the module was native to the theme. It seemed like a bug in the js files after upgrading to 1.6 and i had to ask for support from the theme creator since i don't know how to handle js. I don't think the fix he applied is compatible with other mega-menus or themes. For the other problem in the module list, i used the fix in the comment. I still have a few modules that are missing their title but i can use them as is.
  6. Hi, i have a weird problem, since the last update of prestashop, that i just noticed. In my mega menu module i have the option of placing one product to be showed in the right side of the pane. I add the product by typing in a product name in the selection box, and it usually lists products in a drop-downn list, for me to select. (just like in the search box.) But now i get a weird string, containing all my product names, and i cannot select anything. The string starts with " undefined - [{"id":638,"name":"Bicicleta..... " and it goes on just like this, listing all my products in one string. i have attached two screens of my problem, hoping you can help me solve this. it should look like this: I need to mention that today i had a weird problem when all the names of the modules dissappeared from the modules list, and i had to make some modifications to classes/Translate.php with THIS fix from GitHub, and that problem was fixed. i don't know if it's related, but i really need some help. I want to mention that this only happens in the configuration page of that mega menu module. thanks
  7. Is there any way i can make TinyMCE retain the excel formatting of the table when pasting it in the cms or product decription? (colors, fonts, borders, etc..)
  8. Problem Solved, there was an error in the {rewrite} rules, combined with two faulty src links in the product.tpl. i was missing "../" before the img src.
  9. Hi, I have the following problem. i am using and testing the website in a folder on my domain before releasing it. So i have my link: http: / / domain name /testsite/ whenever i am inserting images in the product description box in the back-end of the product pages, all i am getting in the front page is a "?" replacement with the same size as the image i inserted in the back-end. in the back-end i can see the image fine. i noticed that every image i insert into the product description has its source link stripped from: http: / / domain name /testsite/ img to http: / / domain name / img it strips the folder where i actually have the root of the site i am working on. I want to mention that this only happens on the product description page. CMS articles work fine, frontpage articles work fine. i don't know what to do! what could be stripping the link of the images? i have attached some screens so you see what i am talking about. i am using the latest version of Prestashop along with the extended TinyMce (instructed by Vekia), and also friendly URL (i need friendly url so removing that option its not possible) i tried removing .htaccess, regenerating the images, enabling&disabling friendly URL... nothing. you can access the link below to check the product page image issue. http://dkbike.ro/betadk/617-tub-intern-si-o-ring-pt-shimano-saint-fc-m815.html help?
  10. Hi, i am having a hard time trying to get the attributes list in the back-end sorted by name. I have managed to get them sorted by name in the combination generator and the new combination option in the product bo page. i tried most of the options i read about but it does not change the order. I attached a prtscreen of the list i am talkning about. So, how do i sort them alphabetically? ( i managed to sort the others by modifying Attribute.php at line 144 with: ORDER BY al.`name` ASC, a.`position` ASC. )
  11. Hi, ii have the following situation: I have three stock options: "In Stock" , "Not Available" and "Backorder" (for products that are not in stock but can be ordered). But in layered navigation filters, the products in stock are combined with the back-order ones into one "In stock" filter. Is there any way i can differentiate the stock states in layered navigation? Thanks
  12. Hello, thanks for the answer, unfortunatelly using css to do that is not helping because the menu is not located at the top of the page by default. It is located further down, and i need it to stick to the top page to prevent overscrolling. On 1.5 version, i managed to do that on the megamenu module by adding a script to the .tpl file: </head> <script type='text/javascript'> $("document").ready(function($){ var nav = $('#main-menu-container'); $(window).scroll(function () { if ($(this).scrollTop() > 200) { nav.addClass("f-nav"); } else { nav.removeClass("f-nav"); } }); }); </script> </head> Unfortunatelly that does not work on the default 1.6 menu, and i even tried the .js scripts from the other posts. i must be doing something wrong. you can find the working example on the current website i have, on Prestashop 1.5 with the functional working code frome above: http://www.dkbike.ro Below you can find the link to my beta 1.6 version, and the default horizontal menu to which i want to make the modification. http://www.dkbike.ro/betadk/
  13. Hi, i would like to know how i can make the default horizontal menu stick to the top of the page after scrolling down. i managed to do that in 1.5 by adding a simple code in the tpl file but that doesn't work in here. i really need to have the menu visible at all times during site surfing since i will not use left or right columns. i am referring to the default prestashop theme and the defaul prestashop horizontal menu, so there won't be any confusions to other modules. Can it be done? Thanks
  14. Hi, So i have below a piece of modified code from a modified homefeatured module. This code allows you to select if you want a certain category to be displayed in homefeatured and if you want random or not. function hookHome($params) { global $smarty; $cat = intval(Configuration::get('HOME_FEATURED_CATALOG2')); $category = new Category($cat ? $cat : 60); $nb = intval(Configuration::get('HOME_FEATURED_NBR2')); if (intval(Configuration::get('HOME_FEATURED_RANDOM2'))) { $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10), NULL, NULL, false, true, true, ($nb ? $nb : 10)); } else { $products =$category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10), 'date_upd', 'DESC'); } $smarty->assign(array('products' => $products, 'homeSize' => Image::getSize('home'))); return $this->display(__FILE__, 'homefeaturez2.tpl'); } } if i change this function: $category = new Category($cat ? $cat : 60); i can modify the category the script pulls the products from. ex: 60, 61, 62 - that would be the category ID But i want to know if it is possible to modify that function so it pulls products from all available categories, not just one. Help?
×
×
  • Create New...