ParseError

syntax error, unexpected ')'

/var/www/4shooters/data/protected/modules/store/models/StoreProduct.php(8024)

8012                             // CLogHelper::WriteString('mxmus-goo.txt', 'findImageUrl-4-2', array(
8013                             //     'eavAttributesConf' => json_encode($eavAttributesConf, JSON_UNESCAPED_UNICODE),
8014                             // ));
8015                             if (!empty($eavAttributesConf)) continue;
8016                         }
8017                     }
8018                     $url = $imagesProduct->getImageUrl($image->name, $size, $clearThumb);
8019                     if($url)
8020                     {
8021                         $filePath = Yii::getPathOfAlias('webroot') . $url;
8022                         if(!file_exists($filePath)) continue;
8023 
8024                         $additionalImageUrls[$image->id] = $absolute ? Yii::app()->createAbsoluteUrl($url) : ($returnPath ? $filePath . $url) : $url);
8025                     }
8026                 }
8027 
8028                 if($additionalImagesMaxCount && count($additionalImageUrls) > $additionalImagesMaxCount)
8029                 {
8030                     $additionalImageUrls = array_slice($additionalImageUrls, 0, $additionalImagesMaxCount, true);
8031 
8032                     // CLogHelper::WriteString('mxmus-goo.txt', 'findImageUrl-4', array(
8033                     //     'additional images count' => json_encode(count($additionalImageUrls), JSON_UNESCAPED_UNICODE),
8034                     // ));
8035                 }
8036 

Stack Trace

#2
+
 /var/www/4shooters/data/protected/modules/store/models/StoreCategoryBase.php(62): CActiveRecord::model("StoreCategory")
57      * Returns the static model of the specified AR class.
58      * @return StoreCategory the static model class
59      */
60     public static function model($className = __CLASS__)
61     {
62         return parent::model($className);
63     }
64 
65     /**
66      * @return string the associated database table name
67      */
#3
+
 /var/www/4shooters/data/protected/modules/store/models/StoreCategory.php(34): StoreCategoryBase::model("StoreCategory")
29     public $categorizationRelationName = 'categorization';
30     public $urlPart = 'view';
31 
32     public static function model($className = __CLASS__)
33     {
34         return parent::model($className);
35     }
36 }
37 
38 ?>
#4
+
 /var/www/4shooters/data/protected/modules/store/models/StoreCategoryBase.php(506): StoreCategory::model()
501         return $this;
502     }
503 
504     public static function getAllPaths()
505     {
506         $tableName = static::model()->tableName();
507         $cacheKey = $tableName . 'UrlRule';
508         $allPaths = Yii::app()->cache->get($cacheKey);
509         if($allPaths === false)
510         {
511             $allPaths = Yii::app()->db->createCommand()
2024-03-28 05:07:59 Apache/2.4.6 () OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 Yii Framework/1.1.23