view · edit · sidebar · attach · print · history

< Niklaus.20180131-oddb-adsense | Index | Niklaus.20180129-migel-dateformat >>



  • Migel does not display correct dates
  • does not display correctly the adsense
  • Keep in Mind



Migel does not display correct dates

My changes did not work. Adding another pry statement and breaking after 5 in plugin/swissindex

Now I see that often, but not always we have a worng datei

xxx for Milchpumpe, handbetrieben, Kauf 1996-01-01 count 0
xxx for Milchpumpe, elektrisch, Miete 1996-01-01 count 1
xxx for Miete Milchpumpe, elektrisch 1996-01-01 count 2
xxx for Zubehörset zu Milchpumpe elektrisch 1996-01-01 count 3
xxx for Tracheal-Absauggerät, Miete 1996-01-01 count 4
xxx for Insulinpumpen-System, Miete -4712-01-01 count 5
xxx for Insulinpumpen-System, Miete -4712-01-01 count 6
xxx for Infusionspumpe, für Volumen von 3-10 ml, tragbar, Kauf -4712-01-01 count 7
xxx for Infusionspumpe, für Volumen von 3-10 ml, tragbar, Miete Exkl. Verbrauchsmaterial. -4712-01-01 count 8
xxx for Ampulle zu Infusionspumpe 3-10 ml -4712-01-01 count 9
xxx for Infusionsset mit Nadel zu Infusionspumpe 3-10 ml -4712-01-01 count 10

Also I am asking myself why the jobs/update_migel_products jobs/update_migel_products_with_report and call first save_all_products_all_languages and only afterwards update_all. In my opinion it should be the other way round. Changing the order.

Adding some puts as init_fulltext_index_tables takes a long time. Adding puts if migelid has a year < 0. Removing latest and restarting the import.

update_migel is running and updating the indices. At this time I get the error

DRb::DRbConnError at /de/gcc/home_migel/
too large packet 81494773
Ruby	/usr/local/ruby-2.5.0/lib/ruby/2.5.0/drb/drb.rb: in load, line 581

The update_migell shows the line NOTICE: table "migel_product_fulltext_index_fr" does not exist, skipping because it drops and recreates this index. Nothing to worry, then. After finishing the miigel_update and restarting ch.oddb and migeld, the page shows only correct years. This confirmed using the following bin/migel

migel>  migelids.values.collect{|x| &&}.uniq.compact.sort
-> [1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017]
# but we have one migelid without a date
migel>  migelids.values.find_all{|x| !}.size
-> 1
migel>  migelids.values.find_all{|x| !}.first.migel_code
migel>  migelids.values.find_all{|x| !}
-> NilClass

Pushed the following commits

Lauching sudo -u apache bundle-250 exec ruby-250 jobs/update_migel after rm data/csv/MiGeL.xls data/csv/MiGeL-2018.01.30.xls data/csv/MiGeL-latest.xls on thinpower to force a re-import. Without a restart of ch.oddb nor migeld I get the correct year. See: does not display correctly the adsense

Must figure out why with the default theme no publicity is placed. Is this because of a missing or different cookie?

Added somme dummy HTML code to see whether the adsense is place or not. Now these dummy element show, but not the code. Looking at the inspector I suddenly see the following errors

<ins id="aswift_1_expand" style="display:inline-table;border:none;
background-color:transparent;"><ins id="aswift_1_anchor" style="display:block;border:none;
background-color:transparent;"><iframe frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if({setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_1" name="aswift_1" style="left:0;position:absolute;top:0;

Corrected this error, but now I see in the javascript console

show_ads_impl.js:1 GET 400 ()

I was unable to make the ads appear on the left and on the right. With a simple test.html I was never able to see any ad. The add on the left side in the various homes display nicely, but not in the search results.

view · edit · sidebar · attach · print · history
Page last modified on January 30, 2018, at 05:33 PM