<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ParseError when installing]]></title><description><![CDATA[<p dir="auto">I am an absolute Bagisto newbie, so be gentle <img src="https://forums.bagisto.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=5pjanenhh7r" class="not-responsive emoji emoji-android emoji--blush" title=":blush:" alt="😊" /></p>
<p dir="auto">I have unzipped the source code to my host, edited the .env file with my database credentials and pointed my browser to the /public folder.</p>
<p dir="auto">Then I get hit with a ParseError with seems unlogic to me:</p>
<pre><code>syntax error, unexpected identifier "USER_ID", expecting "="
</code></pre>
<p dir="auto">In packages/Webkul/Installer/src/Helpers/DatabaseManager.php:18 it says:</p>
<pre><code>const int USER_ID = 1;
</code></pre>
<p dir="auto">which looks like perfect syntax to me......</p>
]]></description><link>https://forums.bagisto.com/topic/4279/parseerror-when-installing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 04:12:21 GMT</lastBuildDate><atom:link href="https://forums.bagisto.com/topic/4279.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jul 2026 07:17:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ParseError when installing on Tue, 14 Jul 2026 08:32:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Welcome to Bagisto!</p>
<p dir="auto">The syntax itself is correct, but that declaration (const int USER_ID = 1;) uses typed class constants, which are only supported in PHP 8.3 and later.</p>
<p dir="auto">This error usually means your server is running an older PHP version (such as 8.2, 8.1, or below), so PHP doesn't recognize the int type before the constant name and throws the parse error.</p>
<p dir="auto">You can verify your PHP version by running:</p>
<p dir="auto">php -v</p>
<p dir="auto">or by checking the output of phpinfo() if you're using a web server.</p>
<p dir="auto">If you're using a PHP version below 8.3, please upgrade to PHP 8.3, as the current Bagisto version requires it.</p>
<p dir="auto">Thanks<br />
Aviral<br />
Team Bagisto</p>
]]></description><link>https://forums.bagisto.com/post/14967</link><guid isPermaLink="true">https://forums.bagisto.com/post/14967</guid><dc:creator><![CDATA[01aviral-webkul]]></dc:creator><pubDate>Tue, 14 Jul 2026 08:32:01 GMT</pubDate></item></channel></rss>