Skip to content

magento man

Get random products error

I know that there is a bunch of questions on this topic but no one resolve my problem //@var MagentoCatalogModelResourceModelProductCollectionFactory $this->_productCollectionFactory $items = $this->_productCollectionFactory->create(); $items->addAttributeToSelect(‘*’); $items->getSelect()->orderRand()->limit(10); this piece of code return this error SQLSTATE[42000]: Syntax error or access violation: 1064… Read More »Get random products error

MAGENTO 2: PHP Parse error: syntax error, unexpected ‘MageSuite’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) … on line 7

I installed the module and after command bin/magento setup:di:compile I receive error: PHP Parse error: syntax error, unexpected ‘MageSuite’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) … on line 7 protected MageSuiteLowestPriceLoggerModelGetCurrentDate $getCurrentDate; <?php namespace MageSuiteLowestPriceLoggerModelResourceModel; class PriceHistoryLog extends MagentoFrameworkModelResourceModelDbAbstractDb… Read More »MAGENTO 2: PHP Parse error: syntax error, unexpected ‘MageSuite’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) … on line 7