Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

im trying run this code but show error : (Parse error: syntax error, unexpected ':', expecting ')' in D:\xamp\htdocs\Personal\Personal.php on line 21) my code : <?php $query = ...
javan7875's user avatar
1 vote
1 answer
605 views

I'm transitioning from 7.3 to PHP 8.0 (centOS) and going through the fun process of patching hordes of undefined array keys. It's easy, but time consuming. One new tool offered by PHP I hoped would ...
jtubre's user avatar
  • 729
0 votes
1 answer
683 views

This is the code <?php $sum=1+1; $sub=1-1; $div=1/1; $mult=1*1; printf("SUM:%d\nSUB:%d\nDIV:%d\nMULTI:%d\n",$sum,$sub,$div,$mult); ?> ERROR: PHP Parse error: syntax error, ...
jaswanth's user avatar
0 votes
0 answers
22 views

So I'm creating a PHP function which should insert data into a mySQL database. There are no mistakes outside this function, error message says it's in the first line inside the function, "$sql = &...
Fubel's user avatar
  • 3
0 votes
0 answers
102 views

I am doing an ajax request to a php file to return a certain value. I did some console logs to check the results: readyState: 4 Status: 200 responseText: php file in plain text error: parseError Can ...
Kwiznix's user avatar
  • 23
0 votes
1 answer
713 views

I have been stuck on my code for a while and has tried googling but cannot find whats the problem with my code, can someone help me? It returns the error "Parse error: syntax error, unexpected end of ...
student1234's user avatar
0 votes
1 answer
64 views

In Parse PHP SDK If the current user want to change his Email/username normally Parse check if username used by other user and if it is used it will return error, now this is good and work perfectly ...
Sandy Smarue's user avatar
0 votes
1 answer
385 views

When I was running a process in ProcessMaker, I got error message "Fatal error in trigger", then I checked the error logs and found this PHP Parse error: syntax error, unexpected '}' in /opt/...
Silfia's user avatar
  • 1
0 votes
1 answer
74 views

In this following php code when I include "teacher-header.php" it encounters a error Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\eClassroom\teacher-dashboard.php on line 100 line 100 ...
mhsumonnn's user avatar
0 votes
0 answers
55 views

I have a Laravel/ Angular application, and want to alter the contents of a PDF that's generated on one of the pages based on the content of the variables that will be displayed on that PDF. The PDF ...
Noble-Surfer's user avatar
  • 3,192
0 votes
1 answer
102 views

I tried to execute this command in the terminal: php bin/console cache:clear --env=prod --no-debug But I get the following error message: Parse error: syntax error, unexpected '?' in /is/htdocs/...
peace_love's user avatar
  • 6,523
0 votes
1 answer
281 views

As you can see there is a leading space before opening tag in case 1: line: $var = 1; switch ($var): ?> <?php case 1:?> // BUGGY LINE <?php echo 1; break; ...
4unkur's user avatar
  • 1,028
0 votes
2 answers
1k views

I have been creating a module for visual composer plugin, however, when I already have all the code mounted and saved in the functions.php file, I get the following error: syntax error, unexpected ';'...
Nerea's user avatar
  • 319
0 votes
1 answer
1k views

I just setup php 7.0.27 in both webserver and cli. My laravel project was working just fine before in php 7.2. When I try run command php artisan serve it shows an error: PHP Parse error: syntax ...
Purushotam Sangroula's user avatar
-1 votes
1 answer
74 views

Consider below code : <?php $arr = array('fruit' => 'apple', 'veggie' => 'carrot'); define('fruit', 'veggie'); print "Hello {$arr['fruit']}"; //This works print "Hello $arr['...
PHPLover's user avatar
  • 13k
0 votes
1 answer
1k views

I have been searching on SO for over an hour but couldn't get my issue resolved. For some reason there is error on page as Parse Error: syntax error unexpected } in line 262. It is closing brackets ...
Piyush Rawat's user avatar
-1 votes
1 answer
326 views

Was trying to install a wp plugin- dt world clock and got this error msg. The actual error msg: Parse error: syntax error, unexpected '[' in /var/www/html/wp-content/plugins/dt-world-clock/dt-world-...
BIN Lee's user avatar
0 votes
3 answers
45k views

I've got error on defined-function and from error_reporting(E_ALL); There are errors Parse error: syntax error, unexpected ',', expecting variable (T_VARIABLE) in C:\xampp\htdocs\bs4\func.php on line ...
PaoPaoMC's user avatar
0 votes
0 answers
1k views

Problem I have an application that I am attempting to get online; from local dev-machine to hosting server. Albeit, my application works locally via XAMPP, running PHP v5.6, my hosting server throws ...
user avatar
0 votes
1 answer
121 views

This should be a very basic error, but based on the error-description I can't seem to figure it out. Either I misunderstood some part of the concept or it's just some sign missing. The problem arises ...
user3058751's user avatar
-3 votes
1 answer
147 views

For some reasons I am getting parse error on the last line of the file even it is blank. I've used connect.php file as a connection file for putting the comment into the database. I'm using wampserver ...
khushi's user avatar
  • 1
-2 votes
1 answer
879 views

I have three buttons , Edit remove and view .. on view part i am trying to echo the row ID in order to fetch details . But i get this parse error . Here is the Code : while( $row=mysqli_fetch_array(...
Shabarish Shetty's user avatar
1 vote
1 answer
76 views

PHP is giving me a parse error here. if ($detalleReserva->isGratis() || $detalleReserva->isPasajeroSinCosto()){ $cantPaxGratis++; } Parse error: parse error in /Library/WebServer/...
user1532587's user avatar
  • 1,033
0 votes
1 answer
582 views

What's with this PHP Parsing Error Unexpected '{', expecting '(' No backtrace, no any other error message, just one line in the controller, that's it -_- I kept looking for solutions and reading ...
Distro's user avatar
  • 45
-4 votes
1 answer
38 views

I was using a List category posts plugin and while editing for custom need a one file of this plugin - i have got an error (it was because of wrong usage of backslashes to escape special characters ...
olly's user avatar
  • 63
9 votes
3 answers
3k views

I have a file that is including a file named sitemap.html and in the sitemap, I have the following code: <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/...
Chin Leung's user avatar
0 votes
0 answers
20 views

I know this is a very generic error, but I am getting a: ( ! ) Parse error: syntax error, unexpected 'openFile' (T_STRING), expecting variable (T_VARIABLE) in //file on line 13 and here is my ...
Alexander Kirilov's user avatar
0 votes
0 answers
35 views

If I try to open a php page with a any error inside, the browser always show me "HTTP ERROR 500"; so I have to look at the error log to have better informations about what's wrong with the code. Is ...
Nicolaesse's user avatar
  • 2,764
1 vote
1 answer
182 views

I have no idea about PHP programming before. Now I am working on selenium using Facebook php web driver. I have just started with very basic test code that is to open pages and click links and so on. ...
srujana enugala's user avatar
0 votes
1 answer
190 views

This is totally bewildering for me as I've never experienced such a thing before. My localhost environment is 5.6.7 PHP and my production server (shared hosting) is currently running 5.3.29 and it ...
Prathamesh Datar's user avatar
-1 votes
1 answer
82 views

i have the problem, that i want to make an algorithm which reads the dates of every record from the database and check if it's the date from an array. When it's the right date, it will parse it to ...
Nils Blaumer's user avatar
1 vote
1 answer
111 views

$response var has a component called custom_test_name which looks like below: [Test_Name]ad.no.check1.check2.check3 and here is the small PHP code: <?php echo "<class="."com.tests.".$...
Pratik Jaiswal's user avatar
0 votes
1 answer
2k views

I am generating JSON feed and getting syntax error, unexpected ''Venue'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in line 25 All names ad fields are correct in database. The code I am using is here ...
user avatar
-1 votes
3 answers
607 views

I have this mysql query: $sql = "INSERT INTO lijsten(naam, niveau, nederlands, duits, frans, grieks, engels, latijn, spaans, wiskunde, natuurkunde, scheikunde, geschiedenis, economie, aardrijkskunde,...
Jurre's user avatar
  • 1
4 votes
3 answers
9k views

When I use the composer to install Laravel 5 I get this error: Cannot use 'PhpParser\Node\Scalar\String' as class name as it is reserved in /Applications/XAMPP/xamppfiles/htdocs/learnlaravel5/...
葛文瑞's user avatar
0 votes
0 answers
69 views

couldn't resolve parse.api.com I am unable to even login in my website which is parse-php-sdk based.I got couldn't resolve parse.api.com error with Error code - 6, do i have to change something in my ...
misss-popcorn's user avatar
1 vote
2 answers
902 views

I have this function on my code, and give me this error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ')' on line 25 I cant find the error maybe you can see what I can't D: public ...
Ali ATriple's user avatar
1 vote
2 answers
1k views

Works: <?php switch ($student[$use_grade]) { case "K": ?> <?php echo 'works'; ?> <?php break; ?> <?php } ?> Doesn't work: <?php ...
Geoffrey Hale's user avatar
-1 votes
3 answers
4k views

In a PHP function, I'd like to append values to an array that was passed in by reference. For example: function foo(array &$arr) { $arr[] = "error on this line"; $arr[] = "more"; $...
Marvo's user avatar
  • 18.2k
-2 votes
1 answer
60 views

I have this bit of php code in my wordpress theme where tags of posts are to be fetched and displayed in different colors as specified. But all i get is a Parse error. I would be thankful if someone ...
K.Lumor's user avatar
0 votes
1 answer
114 views

Since PHP version 5.3 we can call static method in a variable class like this: class A { public static function foo() { echo 'bar'; } } $myVariableA = A::class; $myVariableA::...
Rafael Beckel's user avatar
-1 votes
1 answer
5k views

I am new to php. I am trying to connect android with phpmyadmin using webservice . php Code <?php include_once('configuration.php'); $UserId = $_POST['UserId']; $ProductId = $_POST['ProductId'...
Rakesh L's user avatar
  • 1,178
0 votes
1 answer
623 views

I would like to ask e.g. if I have a code like this: /** * Doc comment */ @Annotation class MyClass { } I know it will generate a parse error cause PHP doesn't have annotations natively like Java (...
tonix's user avatar
  • 7,009
0 votes
1 answer
841 views

In Laravel 4.2 the errors are caught and displayed on a "pretty" page, thanks to Whoops. The error is also logged in the configured log file (by default : storage/log/...). You can be a very good ...
Dam Fa's user avatar
  • 448
1 vote
4 answers
4k views

While I was creating a class in php, I experienced this error: Parse error: syntax error, unexpected '[', expecting ',' or ';' on line 5 A simple example: <?php class MyClass { public $...
DevTec's user avatar
  • 307
-1 votes
8 answers
383 views

I have got a PHP syntax error called Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\...
Amare's user avatar
  • 715
0 votes
1 answer
58 views

i've created a complex script for parser datas from XML. At the end of this, i have this: $xmlArray['Event'][$k]['Name event']= $nameVal; $xmlArray['Event'][$k][$i]['Type event']= $...
Caponi Elia's user avatar
-2 votes
1 answer
374 views

Parse error: syntax error, unexpected '[' on line 108 $row->liked_by = $row->liked_by ? explode('|', $row->liked_by) : []; This is the error i am getting but works fine on the local server. ...
swap's user avatar
  • 5
-1 votes
1 answer
3k views

I have this error message on windows vps. Complete error message: "Parse error: syntax error, unexpected T_DNUMBER in C:\Inetpub\vhosts\kayahomesonline.com\httpdocs\configuration.php on line 24" My ...
Yavuz's user avatar
  • 15
0 votes
1 answer
715 views

I get this error when I'm trying to do this: $connBD = new PDO("mysql:host=$dbHote;dbname=$dbNom", $dbUtilisateur, $dbMotPasse, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); // Pour ...
actaram's user avatar
  • 2,058