我已将我的网站域名更改为http://,https://并且我已在我的网站中添加了sharethis插件.
它工作正常,http://但现在没有按钮分享这个显示我尝试访问我的网站使用https://.
以下是我网站的网址:
https://www.placementbooster.ch/
我已经改变了http://w.sharethis.com/button/buttons.js对https://ws.sharethis.com/button/buttons.js和http://s.sharethis.com/loader.js对https://s.sharethis.com/loader.js.
但它仍显示错误:
ReferenceError:sharethis未定义
我正在使用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) 我有以下代码为密码创建一个字段.
// 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)
有没有人知道这种情况的解决方案?