我在wordpress网站上遇到了一个奇怪的问题:
http://konosubaepisodes.com
该网站显示以下警告:
警告:在/home/konosuba/public\\u html/wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend中被零除。php在线419
第419行为$ratio = round($height / $width, 4);
我的视频中没有一个定义的宽度为0。
该错误不会出现在播放机所在的页面上。
如果我查看主页的源代码,我可以看到由于错误而生成的大量无关代码!
我确实尝试卸载并重新安装插件(FV Player),但没有帮助。
有什么想法吗?
不确定这是否是定义宽度的正确代码,但似乎是这样:
/* * Set common variables */
$width = ( isset($this->conf[\'width\']) && (!empty($this->conf[\'width\'])) && intval($this->conf[\'width\']) > 0 ) ? $this->conf[\'width\'] : 320;
$height = ( isset($this->conf[\'height\']) && (!empty($this->conf[\'height\'])) && intval($this->conf[\'height\']) > 0 ) ? $this->conf[\'height\'] : 240;
if (isset($this->aCurArgs[\'width\']) && !empty($this->aCurArgs[\'width\']))
$width = trim($this->aCurArgs[\'width\']);
if (isset($this->aCurArgs[\'height\']) && !empty($this->aCurArgs[\'height\']))
$height = trim($this->aCurArgs[\'height\']);
$src1 = ( isset($this->aCurArgs[\'src1\']) && !empty($this->aCurArgs[\'src1\']) ) ? trim($this->aCurArgs[\'src1\']) : false;
$src2 = ( isset($this->aCurArgs[\'src2\']) && !empty($this->aCurArgs[\'src2\']) ) ? trim($this->aCurArgs[\'src2\']) : false;
@David:它似乎是从最新的帖子(第二季第六集)中提取代码,下面是它提取和插入的内容。
<table width="620"> <tbody> <tr> <td><strong><img data-attachment-id="72" data-permalink="http://konosubaepisodes.com/69-revision-v1/" data-orig-file="" data-orig-size="" data-comments-opened="0" data-image-meta="[]" data-image-title="Konosuba 2 Episode 6" data-image-description="<h2 align="center">Episode 6</h2> <p>[tabs]</p> <p>[tab title="FV Player"]<br /> [fvplayer src="http://mp4watch.tv/media/konosuba/konosuba_s2e6.mp4" width="848" height="480"]<br /> [/tab] </p> <p>[tab title="Gvideo Player"]<br /> [gvideojs gdid="0B5i7u5TAodOFb0FVc05qOFRiSW8"]<br /> [/tab] </p> <p>[tab title="Smart Player"]<br /> [videojs mp4="http://mp4watch.tv/media/konosuba/konosuba_s2e6.mp4"]<br /> [/tab] </p> <p>[tab title="Mp4upload Player"]<br /> <iframe src="http://www.mp4upload.com/embed-ra29qn8hkxuj.html" width="848" height="480" frameborder="0" marginwidth="0" marginheight="0" scrolling="NO" allowfullscreen="allowfullscreen"></iframe><br /> [/tab] </p> <p>[/tabs]</p>