- Posts: 112
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
PHP error after migrating to another server-Trying to get property of non-object
- stevelegare
- Topic Author
- Offline
- Premium Member
Less
More
4 years 9 months ago #186257
by stevelegare
PHP error after migrating to another server-Trying to get property of non-object was created by stevelegare
Hello,
After migrating LimeSurvey to another server, the message "Trying to get property of non-object" appears on different pages (survey list, check database menu...) like in /application/helpers/common_helper.php(144).
Old server
New server
I'm using LimeSurvey 2.05 and I can't update to the latest version at the moment (I know it is an old version ).
Can someone give me a hint?
After migrating LimeSurvey to another server, the message "Trying to get property of non-object" appears on different pages (survey list, check database menu...) like in /application/helpers/common_helper.php(144).
Old server
- Windows
- PHP 5.6.35
New server
- Linux
- PHP 5.6.40
I'm using LimeSurvey 2.05 and I can't update to the latest version at the moment (I know it is an old version ).
Can someone give me a hint?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 9 months ago #186259
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic PHP error after migrating to another server-Trying to get property of non-object
In my opinion : database is broken
1. Bad import of sql file ?
2. Or need a data intergrity check
But with 2.05 : who knows …
1. Bad import of sql file ?
2. Or need a data intergrity check
But with 2.05 : who knows …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- stevelegare
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 112
- Thank you received: 0
4 years 9 months ago #186292
by stevelegare
Replied by stevelegare on topic PHP error after migrating to another server-Trying to get property of non-object
Thanks for your reply.
I did my import one more time and it is Ok.
On this line (common_helper.php line 1150)
$languagecode is NULL.
Do you have any idea?
I did my import one more time and it is Ok.
On this line (common_helper.php line 1150)
Code:
$result = SurveyLanguageSetting::model()->with('survey')->findByPk(array('surveyls_survey_id' => $surveyid, 'surveyls_language' => $languagecode));
$languagecode is NULL.
Do you have any idea?
The topic has been locked.
- stevelegare
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 112
- Thank you received: 0
4 years 9 months ago #186293
by stevelegare
Replied by stevelegare on topic PHP error after migrating to another server-Trying to get property of non-object
Data integrity check is Ok too
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 9 months ago #186295
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic PHP error after migrating to another server-Trying to get property of non-object
You have lack of Survey language settings , i think we fix this after 2.05 .
Why you don't try to update to 2.6lts ?
Why you don't try to update to 2.6lts ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- stevelegare
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 112
- Thank you received: 0
4 years 9 months ago #186305
by stevelegare
Replied by stevelegare on topic PHP error after migrating to another server-Trying to get property of non-object
Do I need to change my templat with 2.6?
If so, is there anything I can do in the database to overcome this?
Thanks
If so, is there anything I can do in the database to overcome this?
Thanks
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 9 months ago #186306
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic PHP error after migrating to another server-Trying to get property of non-object
Did you try to deactivate debug mode in application/config/config.php
With 2.6lts : there are only a minor change in template (but don't remind exactly … where)
You can search the survey without related survey language settings in database.
And delete it .
With 2.6lts : there are only a minor change in template (but don't remind exactly … where)
You can search the survey without related survey language settings in database.
And delete it .
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- stevelegare
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 112
- Thank you received: 0
4 years 9 months ago #186309
by stevelegare
Replied by stevelegare on topic PHP error after migrating to another server-Trying to get property of non-object
I found 4 entries in table
with field
at NULL.
Checking integrity and setting "fr" or "en" in that field solves the problem.
Thanks for all the hints
Great community.
Code:
surveys
Code:
language
Checking integrity and setting "fr" or "en" in that field solves the problem.
Thanks for all the hints
Great community.
The topic has been locked.