Error on index.php

Status
Not open for further replies.

hecrowell

New Member
Messages
9
Reaction score
0
Points
1
Welcome to phpVMS!
Posted by phpVMS Installer on 10/26/2014

Thanks for installing and using phpVMS!
Check out the docs for help and information on getting started on your VA.

This is just a starter skin - customize yours completely. This is just a basic, barebones example of what a skin is and how it works. Check out the crystal folder in the lib/skins directory. Make your own copy and fiddle around. For help, check out the forum, and skinning docs. Also, be sure to check out the skinning tutorials for a quick primer. The forums are also filled with plenty of helpful people for any questions you may have.

Good luck!

Recent Reports
No reports have been filed
Newest Pilots

Parse error: syntax error, unexpected ')', expecting '&' or variable (T_VARIABLE) in /home/vacax10h/public_html/phpvms/core/common/PilotData.class.php on line 436

I do not understand what this error is telling me
Install went fine - tables all created
Install checker tests - all green


433 /**
434 * Save avatars
435 */
436 public static function saveAvatar($code, $pilotid,)
437 {
438 # Check the proper file size
439 # Ignored for now since there is a resize
440 /*if ($_FILES['avatar']['size'] > Config::Get('AVATAR_FILE_SIZE'))
441 {
442 return false;
443 }*/



 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi Hecrowell,

This appears to be a mistake in the source code that you have downloaded. Please could you ensure that you are running the most up-to-date version of "phpvms"? :)

Thank you,
 

hecrowell

New Member
Messages
9
Reaction score
0
Points
1
Dead-I
Hmmm...all I can tell you is: I downloaded it from http://www.phpvms.net/downloads from under the heading "Latest Version" and the link is "Download the full Version" which is archived in a .zip file.
Is there a newer version than this or upgrade? I dont seem to be able to find one.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
You would need to examine the code of the entire saveAvatar() function to see if anther variable is expected/used from the function's signature. Right now, the line is
PHP:
public static function saveAvatar($code, $pilotid,)

That trailing comma is illegal. Either another variable name has to appear, or the comma needs to be deleted, and you can only tell which needs to happen by seeing if some other variable is used elsewhere in the code. But if the code is broken on what is essentially the entry page for the application and the developer(s) can't see even that far, I'm not sure how far I'd trust the rest of the app.
 

hecrowell

New Member
Messages
9
Reaction score
0
Points
1
esseller

Thank you for the info. One problem that I had to fix was to remove a variable immediately after the comma. I neglected to remove the trailing comma as well. I will be away for a while, but will see to this when I return...will post the result back to here. I am anything BUT a php gruru, but the very little that I do know should have kicked in when I looked at that line of code.

Again Thnx!
 
Status
Not open for further replies.
Top