Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Error 500 after update: syntax error, unexpected end of file, expecting function

  • gregix
  • gregix's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213351 by gregix
Hello, 

I manually updated LimeSurvey from version 4.3.3 to version 4.4.12. I've kept config.php and security.php, deleted all the other files, and copied the new files. Everything seems OK after the update, but after opening some of my surveys (or creating a new one and trying to display it), I get a 500 error:

syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST)

However, In Cpanel, there are no 500 errors logged for today.

Could you please help me to troubleshoot this error?

Kind regards,
Gregor 
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #213355 by DenisChenu
I think a file was not uploaded successfully

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.
  • gregix
  • gregix's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213371 by gregix
Hi DenisChenu, thank you for your reply. Which file do you mean? I've tried to reinstall this new version three times. Each time, it is the same result. I was using Filezilla on Mac to upload the files. I also tried to import my survey and create new ones, each time I get the Error 500, though all of the menus work great, and LimeSurvey looks OK at the first sight.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #213385 by holch
No one knows which file. But it is not the first time that not all files have been uploaded via FTP, which can cause problems. That is what Denis is referring to.

I lately upload the whole zip file to the server and unzip it there, this way there is no chance for FTP to mess up some files.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: gregix
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #213389 by DenisChenu
Maybe check with debug : manual.limesurvey.org/Debug_mode

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.
  • gregix
  • gregix's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213463 by gregix
Thank you, I will try unzipping it on the server.
The topic has been locked.
  • gregix
  • gregix's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213464 by gregix
Denis, in which file should I add those lines:

'config'=>array(
'debug'=>2,
'debugsql'=>0,
)
The topic has been locked.
  • gregix
  • gregix's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213465 by gregix
Holch, thank you so much. Reinstalling it by unzipping the file directly on the server solved the problem. It should be advised in the wiki concerning manualkt updating lime survey
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #213472 by holch

It should be advised in the wiki concerning manualkt updating lime survey

The thing is, that this has little to nothing to do with with Limesurvey but rather is an issue with the server / network / FTP client.

Glad that this could be solved so easily.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • gregix
  • gregix's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213473 by gregix
I agree, that It has nothing to do with LimeSurvey, but you wrote that this is a common problem that some files are not correctly sent which results in issues, so unzipping it on a server could eliminate those possible issues.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #213481 by holch
If you feel this is worth mentioning, you can add it to the manual. It is a wiki and anyone can use their credentials from the forum to update it.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: gregix
The topic has been locked.
  • gregix
  • gregix's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213493 by gregix
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose