Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error: syntax error, unexpected T_OBJECT_OPERATOR #621

Closed
myst67 opened this issue Jul 24, 2014 · 4 comments
Closed

Parse error: syntax error, unexpected T_OBJECT_OPERATOR #621

myst67 opened this issue Jul 24, 2014 · 4 comments
Assignees

Comments

@myst67
Copy link

myst67 commented Jul 24, 2014

Hi
getting this error while installing magento2 in localhost
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\xampp\htdocs\magento2\app\bootstrap.php on line 65

@tzyganu
Copy link
Contributor

tzyganu commented Jul 24, 2014

@myst67 Are you using php 5.3? If so it won't work.
The line in question is

(new \Magento\Framework\Autoload\IncludePath())->addIncludePath(array(BP . '/app/code', BP . '/lib/internal'));

Class member access on instantiation works starting PHP 5.4

@verklov
Copy link
Contributor

verklov commented Aug 5, 2014

Hi @myst67, was the reason of the issue you experienced in the PHP version as @tzyganu suggested? If yes, please note that the minimum supported version of PHP for Magento 2 is PHP 5.4.

Please let us know whether the issue is gone now or is still valid for you. Thank you!

@verklov verklov self-assigned this Aug 5, 2014
@myst67
Copy link
Author

myst67 commented Aug 19, 2014

Thanks guys.. It helps me a lot.. :)

@myst67 myst67 closed this as completed Aug 19, 2014
magento-team added a commit that referenced this issue Sep 15, 2014
* Modularity
   * Log module became switchable
   * New switchable module TaxImportExport was created
 * Sales module improvement:
   * Performance was improved
   * Complexity of the order persistence logic was reduced
 * Unit tests coverage for modules was increased:
   * Magento\Rule
   * Magento\Contact
 * Framework:
   * Composite and bundle save/load processors were added
   * Support for the complex custom attributes were added
   * Generic abstract data objects, that is simple and extensible (supports custom attributes), were created
 * Search Library:
   * Approach of matching the fields to table names was implemented
   * MySQL Adapter Library for Match and Filtered query types was added
   * Ability to filter queries was added
   * Response handler for MySQL adapter was added
   * XML declarations for full-text search were added
 * Functional tests:
   * Add Products to Order from Last Ordered Products Section
   * Add Products to Order from Products in Comparison List Section
   * Add Products to Order from Recently Compared Products Section
   * Create Configurable Product
   * Create Store
   * Create Website
   * Delete Product From Customer Wishlist On Backend
   * Delete Store
   * Delete Website
   * Viewed Products Report
   * Products In Cart Report
   * Manage Product Review from Customer Page
   * Mass Assign Customer Group
   * New Account Report
   * Update Product Review From Product Page
   * Update Store
   * Manage Product Review From Customer Page
 * Other:
   * Session.name ini set
   * Calls to setPublicCookie became more secured
   * Generating the session ID for sensitive data was added
 * Fixed bugs:
   * Placing the order from backend
   * Redirecting the customer to empty shopping cart instead of displaying credit card iFrame on checkout with for PayPal Payflow Link
   * Showing the message for multiple shipping address checkout in Authorize partial approval flow
   * Mess detector failure
   * flv_player security vulnerability
   * Calling the inexistent method in cart with shopping cart price rules
   * Overriding a non-empty custom attribute value with empty value in store view scope
   * Editing in 'WYSIWYG editor' by clicking "Use Default" checkbox when switched to store view scope
   * RSS list page vulnerability
   * Applying the store View title on frontend for configurable attributes
   * Viewing the uploaded sample in downloadable product
   * Google Shopping: Problem with publishing products if change value for option 'Update Google Shopping Item when Product is Updated'
   * Configuration scope of items' InStock status on order cancellation
   * Creating the new customer in admin
 * GitHub requests:
   * #621-- Parse error: syntax error, unexpected T_OBJECT_OPERATOR
   * #651-- Multishipping checkout add/edit address page issue
magento-team pushed a commit that referenced this issue Sep 23, 2015
mmansoor-magento pushed a commit that referenced this issue Dec 1, 2016
[Frontend] Magetwo 56989: Deployment process can't be executed on separate machine
@Jeeva-Rathinam
Copy link

Hi @myst67, was the reason of the issue you experienced in the PHP version as @tzyganu suggested? If yes, please note that the minimum supported version of PHP for Magento 2 is PHP 5.4.

Please let us know whether the issue is gone now or is still valid for you. Thank you!

I ma using PHP 7.1.29 still i am getting error for install magento 2.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants