bobaksh / easy-appointments

Automatically exported from code.google.com/p/easy-appointments
0 stars 0 forks source link

Parse error: syntax error, unexpected '[' in /public/easy_appointments/application/views/appointments/book.php on line 178 #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed it
2. Went to the home folder

What is the expected output? What do you see instead?
expected to see the home page or a install page.

What version of the product are you using? On what operating system?
0.5

Please provide any additional information below.

Original issue reported on code.google.com by elgen...@gmail.com on 26 Sep 2013 at 7:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, can you edit out my name? thx

I'm running:
Apache 2.4, 
PHP 5.4

the install seems to work (no more error), but now it shows this on Step 1:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: PHP_SELF
Filename: core/Input.php
Line Number: 641

And it can't get past Step 2 (I select a date, and there's supposedly to be 
shown an hour but no luck so far)

Screenshot attached

Original comment by elgen...@gmail.com on 28 Sep 2013 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm thinking that the problem is the way I am defining an array variable. While 
I use this "$var = [];" it will only work with PHP 5.4 and above according to 
the following page. 
http://php.net/manual/en/language.types.array.php

Original comment by alextselegidis@gmail.com on 28 Sep 2013 at 9:39

GoogleCodeExporter commented 9 years ago
@Second Error:

Do you have mod_rewrite enabled?

Original comment by alextselegidis@gmail.com on 28 Sep 2013 at 9:48

GoogleCodeExporter commented 9 years ago
yep, 
I get the second error using 5.4, 
I get the first error (the title of the issue) using 5.3 (and don't see the 
calendar or the steps)

Original comment by elgen...@gmail.com on 28 Sep 2013 at 4:27

GoogleCodeExporter commented 9 years ago
Unfortunately I cannot reproduce the error. I am thinking that it has to do 
with the update from php v5.3 to v5.4 in your server, maybe some settings where 
not updated. This is a CodeIgniter issue and has nothing to do with E!A. 

Check your php.ini file for the "register_globals" directive. It must be "Off". 
I'm not sure if this will fix the problem though.

Original comment by alextselegidis@gmail.com on 4 Oct 2013 at 8:47

GoogleCodeExporter commented 9 years ago
thx man, will check that.

Original comment by elgen...@gmail.com on 8 Oct 2013 at 3:21

GoogleCodeExporter commented 9 years ago
Issue Closed

Original comment by alextselegidis@gmail.com on 10 Oct 2013 at 1:02