×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Fatal error: Can't use method return value in....
Nancy Anderson
Junior Member
Posts: 20
9 năm 10 tháng trước #557
bởi Nancy Anderson
Fatal error: Can't use method return value in.... was created by Nancy Anderson
Hi,
Just pulled a new build to see where you were at on the search feature and now I am getting this error on all of the view list calls.
Fatal error: Can't use method return value in write context in "path"/components/com_sails/models/orders.php on line 146
Please let me know what other info would be helpful to get this resolved.
thanks,
nancy
Just pulled a new build to see where you were at on the search feature and now I am getting this error on all of the view list calls.
Fatal error: Can't use method return value in write context in "path"/components/com_sails/models/orders.php on line 146
Please let me know what other info would be helpful to get this resolved.
thanks,
nancy
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Philip Walton
New Member
Posts: 4
9 năm 10 tháng trước #560
bởi Philip Walton
Replied by Philip Walton on topic Fatal error: Can't use method return value in....
I also did a new build and now I have this error
Can't use method return value in write context in..../httpdocs/components/com_mycomponent/models/workings.php on line 132
Any solution, and you roll back t a working solution?
Can't use method return value in write context in..../httpdocs/components/com_mycomponent/models/workings.php on line 132
Any solution, and you roll back t a working solution?
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Nancy Anderson
Junior Member
Posts: 20
9 năm 10 tháng trước #561
bởi Nancy Anderson
Replied by Nancy Anderson on topic Fatal error: Can't use method return value in....
Hi Phillp,
Just curious, did you do an update to an existing component or a clean install of the new build.
I did an update in place. I should have mentioned that yesterday. Was late.
thanks,
nancy
Just curious, did you do an update to an existing component or a clean install of the new build.
I did an update in place. I should have mentioned that yesterday. Was late.
thanks,
nancy
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Philip Walton
New Member
Posts: 4
9 năm 10 tháng trước #562
bởi Philip Walton
Replied by Philip Walton on topic Fatal error: Can't use method return value in....
It was an update and I wrote it over the component that was there. Been fine until now but I then did a code compare and can see that this is new in the model
if (!empty($app->input->get('filter_order')))
{
$list = $app->getUserState($this->context . '.list');
$list = $app->input->get('filter_order');
$app->setUserState($this->context . '.list', $list);
}
if (!empty($app->input->get('filter_order_Dir')))
{
$list = $app->getUserState($this->context . '.list');
$list = $app->input->get('filter_order_Dir');
$app->setUserState($this->context . '.list', $list);
}
$list = $app->getUserState($this->context . '.list');
!empty can cause problems as can be seen here
stackoverflow.com/questions/1075534/cant...lue-in-write-context
Hope this helps with a solution
if (!empty($app->input->get('filter_order')))
{
$list = $app->getUserState($this->context . '.list');
$list = $app->input->get('filter_order');
$app->setUserState($this->context . '.list', $list);
}
if (!empty($app->input->get('filter_order_Dir')))
{
$list = $app->getUserState($this->context . '.list');
$list = $app->input->get('filter_order_Dir');
$app->setUserState($this->context . '.list', $list);
}
$list = $app->getUserState($this->context . '.list');
!empty can cause problems as can be seen here
stackoverflow.com/questions/1075534/cant...lue-in-write-context
Hope this helps with a solution
Những thành viên sau(s) đã Cảm ơn: Andres Maeso
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Philip Walton
New Member
Posts: 4
9 năm 10 tháng trước #574
bởi Philip Walton
Replied by Philip Walton on topic Fatal error: Can't use method return value in....
I have just hit build and overwritten my previous component and all is well now.
I posted in another forum post as well as the solution was mentioned there and the rebuild worked fine
Thanks
I posted in another forum post as well as the solution was mentioned there and the rebuild worked fine
Thanks
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Nancy Anderson
Junior Member
Posts: 20
9 năm 10 tháng trước #578
bởi Nancy Anderson
Replied by Nancy Anderson on topic Fatal error: Can't use method return value in....
Thank you. I will check it out first thing tomorrow.
thanks,
nancy
thanks,
nancy
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Thời gian tải trang: 0.056 giây