Gelöst Paypal-Pluginausfall nach Komprimierung von JavaScript- und CSS-Dateien

robertw

Aktives Mitglied
17. Februar 2016
51
9
Hallo,
wenn ich die Template-Einstellung "Komprimierung von JavaScript- und CSS-Dateien" aktiviere, bekomme ich leider folgenden Fehler in der Console.

1540834434769.png
Der Inhalt der betroffenen Datei ist Folgender:
Code:
(function(){'use strict';var PayPal=function(options){this.init(options);};PayPal.prototype={ppplus:'https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js',constructor:PayPal,init:function(options){this.options=$.extend({},{selector:''},options||{});},loadPaymentWall:function(loaded){if(typeof PAYPAL!='undefined'){return(typeof loaded=='function')?loaded():true;}
this.getScript(this.ppplus).done(function(){var validate=function(){if(typeof PAYPAL=='undefined'){window.setTimeout(function(){validate();},100);}
else if(typeof loaded=='function'){loaded();}}
validate();});},getInstallments:function(amount,currency){$.evo.io().call('jtl_paypal_get_presentment',[amount,currency],this,function(error,data){if(error)return;$(data.options.selector).html(data.response||'');});},getScript:function(url,options){return jQuery.ajax($.extend(options||{},{dataType:"script",cache:true,url:url}));}};var jtl_paypal=function(options){return new PayPal(options);};if(!window.paypal){window.paypal=jtl_paypal;}
$(document).on("evo:changed.price.article",function(e,price){paypal({selector:'.ppf-loader'}).getInstallments(price);});})(jQuery);;$(document).on('click','#offer_button',function(){$('#modal-angebot').css('display','block');});$(document).on('click','.close',function(){$('#modal-angebot').css('display','none');});window.onclick=function(event){var modal=document.getElementById('modal-angebot');if(event.target==modal){$('#modal-angebot').css('display','none');}};$("#print-logo ~ h1").css('text-align','center');;<?php
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199);? ... der Rest ist verschlüsselt

Dieser Fehler führt leider dazu, dass das Paypal-Plugin nicht mehr funktioniert.

Shop-Version 4.06.9
PHP-Version 5.6
Paypal-Plugin 109

Kann hier jemand helfen?
 

Mirko.Schmidt User deaktiviert

Guest
Hallo,
sind noch andere Plugins aktiv und wurden diese zeitweise deaktiviert, damit es sich auf's PP Plugin beschränken lässt?
 

robertw

Aktives Mitglied
17. Februar 2016
51
9
Ich habe jetzt alle Plugins deaktiviert, bis auf JTL PayPal. Fehler bleibt der gleiche.
 

css-umsetzung

Offizieller Service Partner
SPBanner
6. Juli 2011
8.648
2.700
Berlin
Firma
css-umsetzung
Bei dir ist in dem JS auch ein PHP File das Ioncube verschlüsselt ist, das gehört da bestimmt nicht hin und ich glaube auch nicht das es zum PayPal Plugin gehört
Sicher das du alle Plugins aus hast?

Code:
<?php
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199);? ... der Rest ist verschlüsselt
 
  • Gefällt mir
Reaktionen: robertw

Ähnliche Themen