小编Gok*_*nde的帖子

Sharethis插件无法使用https://

我已将我的网站域名更改为http://,https://并且我已在我的网站中添加了sharethis插件.

它工作正常,http://但现在没有按钮分享这个显示我尝试访问我的网站使用https://.

以下是我网站的网址:

https://www.placementbooster.ch/

我已经改变了http://w.sharethis.com/button/buttons.jshttps://ws.sharethis.com/button/buttons.jshttp://s.sharethis.com/loader.jshttps://s.sharethis.com/loader.js.

但它仍显示错误:

ReferenceError:sharethis未定义

javascript php ssl sharethis

5
推荐指数
2
解决办法
9766
查看次数

生成要打印的表结构时,TCPDF返回错误

我正在使用TCPDF在SmartJobBoard中工作。PDF已在旧服务器上正确生成。

将站点移至新服务器后,它在创建PDF发票时开始显示错误。TCPDF库显示以下错误。

Notice: Undefined index: cols in /home/pb_admin/public_html/pb/system/ext/tcpdf/tcpdf.php on line 22174
Notice: Undefined index: thead in /home/pb_admin/public_html/pb/system/ext/tcpdf/tcpdf.php on line 21705
Notice: Undefined index: rows in /home/pb_admin/public_html/pb/system/ext/tcpdf/tcpdf.php on line 22162
Warning: array_push() expects parameter 1 to be array, null given in /home/pb_admin/public_html/pb/system/ext/tcpdf/tcpdf.php on line 22164
Warning: array_push() expects parameter 1 to be array, null given in /home/pb_admin/public_html/pb/system/ext/tcpdf/tcpdf.php on line 22164
Warning: array_push() expects parameter 1 to be array, null given in /home/pb_admin/public_html/pb/system/ext/tcpdf/tcpdf.php on line 22164
Notice: Undefined index: thead in /home/pb_admin/public_html/pb/system/ext/tcpdf/tcpdf.php …
Run Code Online (Sandbox Code Playgroud)

php tcpdf

3
推荐指数
2
解决办法
2万
查看次数

删除验证器并在控制器中将required设置为false

我有以下代码为密码创建一个字段.

// Element: password
$this->addElement('Password', 'password', array(
   'label' => 'Password',
   'description' => 'Passwords must be at least 6 characters long.',
   'required' => true,
   'allowEmpty' => false,
   validators' => array(
       array('NotEmpty', true),
       array('StringLength', false, array(6, 32)),
       )
  ));
$this->password->getDecorator('Description')->setOptions(array('placement' => 'APPEND'));
$this->password->getValidator('NotEmpty')->setMessage('Please enter a valid password.', 'isEmpty');
Run Code Online (Sandbox Code Playgroud)

在我的控制器中,我需要删除验证器,并根据某些条件使控制器"必需"为false.

例如:-

if($someCondition){
    //Set required to false and remove validator here somehow
}
Run Code Online (Sandbox Code Playgroud)

有没有人知道这种情况的解决方案?

zend-framework zend-form

2
推荐指数
1
解决办法
7149
查看次数

标签 统计

php ×2

javascript ×1

sharethis ×1

ssl ×1

tcpdf ×1

zend-form ×1

zend-framework ×1