ErrorException

HTTP 500 Whoops, looks like something went wrong.

file_put_contents(/var/www/astina/storage/cache/category_seo_urls/category_seo_urls$): failed to open stream: No such file or directory

Exception

ErrorException

  1.      * @param bool $lock
  2.      * @return int
  3.      */
  4.     public function put(string $path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      * @param string $path
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.      * @param bool $lock
  2.      * @return int
  3.      */
  4.     public function put(string $path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      * @param string $path
  1.         $this->ensureCacheDirectoryExists($path $this->path($key));
  2.         $result $this->files->put(
  3.             $path,
  4.             $this->expiration($seconds) . serialize($value),
  5.             true
  6.         );
  7.         if ($result !== false && $result 0) {
  8.             $this->ensureFileHasCorrectPermissions($path);
  1.      * @param mixed $value
  2.      * @return bool
  3.      */
  4.     public function forever($key$value): bool
  5.     {
  6.         return $this->put($key$value0);
  7.     }
  8.     /**
  9.      * Remove an item from the cache.
  10.      * @param string $key
FileStore->forever() in /var/www/astina/app/Classes/Cache/Repository.php (line 301)
  1.      * @param mixed $value
  2.      * @return bool
  3.      */
  4.     public function forever($key$value)
  5.     {
  6.         $result $this->store->forever($this->itemKey($key), $value);
  7.         if ($result) {
  8.             event(new CacheWritten($key$value));
  9.         }
Repository->forever() in /var/www/astina/app/Classes/Cache/Repository.php (line 160)
  1.         if (is_array($key)) {
  2.             return $this->putMany($key$value);
  3.         }
  4.         if ($ttl === null) {
  5.             return $this->forever($key$value);
  6.         }
  7.         $seconds $this->getSeconds($ttl);
  8.         if ($seconds <= 0) {
  1.         // given number of seconds so it's available for all subsequent requests.
  2.         if (!is_null($value)) {
  3.             return $value;
  4.         }
  5.         $this->put($key$value $callback(), $ttl);
  6.         return $value;
  7.     }
  8.     /**
  1.     public static function remember(string $key, \Closure $closure$ttl null)
  2.     {
  3.         try {
  4.             return self::getRepository()
  5.                 ->remember(
  6.                     $key,
  7.                     $ttl,
  8.                     $closure
  9.                 );
  10.         } catch (\Exception $exception) {
  11.             Log::critical($exception->getMessage(), [
FileCacheHelper::remember() in /var/www/astina/includes/functions/general.php (line 2148)
  1.                     $cat_urls_array[$row['language_id']][$row['id']] = array($row['categories_seo_url'], $row['categories_name'], $row['parent_id']);
  2.                 }
  3.             }
  4.             return $cat_urls_array;
  5.         },
  6.         null
  7.     );
  8. }
  9. function setTree($exclude ''$parent_cat 0)
  10. {
  1. require(DIR_WS_FUNCTIONS 'validations.php'); // include validation functions (right now only email address)
  2. require(DIR_WS_CLASSES 'split_page_results.php'); // split-page-results
  3. require(DIR_WS_CLASSES 'breadcrumb.php'); // include the breadcrumb class and start the breadcrumb trail
  4.     
  5. $cat_tree setTree();  //new function setTree
  6. getCatSeoUrl();
  7. $manufacturersToProductsId = [];
  8. $prodToManufacturers countProdToManufacturers();
  9. $prodToCat prodToCat();
  10. $manufacturers_array tep_get_manufacturers();
  11. $taxRatesArray getTaxRates();
require('/var/www/astina/includes/application_top.php') in /var/www/astina/index.php (line 7)
  1. use App\Classes\Cache\Helpers\FileCacheHelper;
  2. $start microtime(true);
  3. require('includes/application_top.php');
  4. checkTime('application_top');
  5. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_DEFAULT);

Stack Trace

ErrorException
ErrorException:
file_put_contents(/var/www/astina/storage/cache/category_seo_urls/category_seo_urls$): failed to open stream: No such file or directory

  at /var/www/astina/app/Classes/Filesystem/Filesystem.php:140
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at file_put_contents()
     (/var/www/astina/app/Classes/Filesystem/Filesystem.php:140)
  at App\Classes\Filesystem\Filesystem->put()
     (/var/www/astina/app/Classes/Cache/Store/FileStore.php:64)
  at App\Classes\Cache\Store\FileStore->put()
     (/var/www/astina/app/Classes/Cache/Store/FileStore.php:131)
  at App\Classes\Cache\Store\FileStore->forever()
     (/var/www/astina/app/Classes/Cache/Repository.php:301)
  at App\Classes\Cache\Repository->forever()
     (/var/www/astina/app/Classes/Cache/Repository.php:160)
  at App\Classes\Cache\Repository->put()
     (/var/www/astina/app/Classes/Cache/Repository.php:328)
  at App\Classes\Cache\Repository->remember()
     (/var/www/astina/app/Classes/Cache/Helpers/FileCacheHelper.php:179)
  at App\Classes\Cache\Helpers\FileCacheHelper::remember()
     (/var/www/astina/includes/functions/general.php:2148)
  at getCatSeoUrl()
     (/var/www/astina/includes/application_top.php:795)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/index.php:7)                
file_put_contents(/var/www/astina/storage/cache/categories_urls/categories_urls$): failed to open stream: No such file or directory (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

file_put_contents(/var/www/astina/storage/cache/categories_urls/categories_urls$): failed to open stream: No such file or directory

Exception

ErrorException

  1.      * @param bool $lock
  2.      * @return int
  3.      */
  4.     public function put(string $path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      * @param string $path
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.      * @param bool $lock
  2.      * @return int
  3.      */
  4.     public function put(string $path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      * @param string $path
  1.         $this->ensureCacheDirectoryExists($path $this->path($key));
  2.         $result $this->files->put(
  3.             $path,
  4.             $this->expiration($seconds) . serialize($value),
  5.             true
  6.         );
  7.         if ($result !== false && $result 0) {
  8.             $this->ensureFileHasCorrectPermissions($path);
  1.      * @param mixed $value
  2.      * @return bool
  3.      */
  4.     public function forever($key$value): bool
  5.     {
  6.         return $this->put($key$value0);
  7.     }
  8.     /**
  9.      * Remove an item from the cache.
  10.      * @param string $key
FileStore->forever() in /var/www/astina/app/Classes/Cache/Repository.php (line 301)
  1.      * @param mixed $value
  2.      * @return bool
  3.      */
  4.     public function forever($key$value)
  5.     {
  6.         $result $this->store->forever($this->itemKey($key), $value);
  7.         if ($result) {
  8.             event(new CacheWritten($key$value));
  9.         }
Repository->forever() in /var/www/astina/app/Classes/Cache/Repository.php (line 160)
  1.         if (is_array($key)) {
  2.             return $this->putMany($key$value);
  3.         }
  4.         if ($ttl === null) {
  5.             return $this->forever($key$value);
  6.         }
  7.         $seconds $this->getSeconds($ttl);
  8.         if ($seconds <= 0) {
  1.         // given number of seconds so it's available for all subsequent requests.
  2.         if (!is_null($value)) {
  3.             return $value;
  4.         }
  5.         $this->put($key$value $callback(), $ttl);
  6.         return $value;
  7.     }
  8.     /**
  1.     public static function remember(string $key, \Closure $closure$ttl null)
  2.     {
  3.         try {
  4.             return self::getRepository()
  5.                 ->remember(
  6.                     $key,
  7.                     $ttl,
  8.                     $closure
  9.                 );
  10.         } catch (\Exception $exception) {
  11.             Log::critical($exception->getMessage(), [
FileCacheHelper::remember() in /var/www/astina/includes/functions/general.php (line 2381)
  1.                     }
  2.                 }
  3.             }
  4.             return $cat_urls;
  5.         },
  6.         null
  7.     );
  8. }
  9. function check_subcategories($tree$current_category_id)
tep_get_categories_urls() in /var/www/astina/includes/application_top.php (line 806)
  1. $cPathTree null;
  2. tep_get_cpath_global($cat_tree); // generate cPaths array
  3. if (getConstantValue('SEO_ADD_PARENT_CATEGORIES_TO_URL') === 'true') {
  4.     $cPaths $cPathTree// add parent categories is to category URL
  5. }      
  6. tep_get_categories_urls(); // generate categories urls
  7. tep_make_cat_list();
  8.  
  9. if (!tep_session_is_registered('geopluginJSONE')) {
  10.     require(DIR_WS_CLASSES 'geoplugin.class.php');
  11.     $geoplugin = new geoPlugin();
require('/var/www/astina/includes/application_top.php') in /var/www/astina/index.php (line 7)
  1. use App\Classes\Cache\Helpers\FileCacheHelper;
  2. $start microtime(true);
  3. require('includes/application_top.php');
  4. checkTime('application_top');
  5. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_DEFAULT);

Stack Trace

ErrorException
ErrorException:
file_put_contents(/var/www/astina/storage/cache/categories_urls/categories_urls$): failed to open stream: No such file or directory

  at /var/www/astina/app/Classes/Filesystem/Filesystem.php:140
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at file_put_contents()
     (/var/www/astina/app/Classes/Filesystem/Filesystem.php:140)
  at App\Classes\Filesystem\Filesystem->put()
     (/var/www/astina/app/Classes/Cache/Store/FileStore.php:64)
  at App\Classes\Cache\Store\FileStore->put()
     (/var/www/astina/app/Classes/Cache/Store/FileStore.php:131)
  at App\Classes\Cache\Store\FileStore->forever()
     (/var/www/astina/app/Classes/Cache/Repository.php:301)
  at App\Classes\Cache\Repository->forever()
     (/var/www/astina/app/Classes/Cache/Repository.php:160)
  at App\Classes\Cache\Repository->put()
     (/var/www/astina/app/Classes/Cache/Repository.php:328)
  at App\Classes\Cache\Repository->remember()
     (/var/www/astina/app/Classes/Cache/Helpers/FileCacheHelper.php:179)
  at App\Classes\Cache\Helpers\FileCacheHelper::remember()
     (/var/www/astina/includes/functions/general.php:2381)
  at tep_get_categories_urls()
     (/var/www/astina/includes/application_top.php:806)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/index.php:7)                
Cannot modify header information - headers already sent by (output started at /var/www/astina/app/Exceptions/Handler/Handler.php:106) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

Cannot modify header information - headers already sent by (output started at /var/www/astina/app/Exceptions/Handler/Handler.php:106)

Exception

ErrorException

  1.     if (!$promUrls) {
  2.         // check cpath, if not valid - redirect!:
  3.         if ($cPath != ($valid_cpath = (isset($cPaths[$current_category_id]) ? $cPaths[$current_category_id] : $cPath))) {
  4.             $redirect_url tep_href_link(FILENAME_DEFAULT'cPath=' $valid_cpath);
  5.             header("HTTP/1.0 301 Moved Permanently");
  6.             header("Location: $redirect_url");
  7.             tep_exit();
  8.         }
  9.     }
  10. } else {
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.     if (!$promUrls) {
  2.         // check cpath, if not valid - redirect!:
  3.         if ($cPath != ($valid_cpath = (isset($cPaths[$current_category_id]) ? $cPaths[$current_category_id] : $cPath))) {
  4.             $redirect_url tep_href_link(FILENAME_DEFAULT'cPath=' $valid_cpath);
  5.             header("HTTP/1.0 301 Moved Permanently");
  6.             header("Location: $redirect_url");
  7.             tep_exit();
  8.         }
  9.     }
  10. } else {
require('/var/www/astina/includes/application_top.php') in /var/www/astina/index.php (line 7)
  1. use App\Classes\Cache\Helpers\FileCacheHelper;
  2. $start microtime(true);
  3. require('includes/application_top.php');
  4. checkTime('application_top');
  5. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_DEFAULT);

Stack Trace

ErrorException
ErrorException:
Cannot modify header information - headers already sent by (output started at /var/www/astina/app/Exceptions/Handler/Handler.php:106)

  at /var/www/astina/includes/application_top.php:1001
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at header()
     (/var/www/astina/includes/application_top.php:1001)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/index.php:7)                
Cannot modify header information - headers already sent by (output started at /var/www/astina/app/Exceptions/Handler/Handler.php:106) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

Cannot modify header information - headers already sent by (output started at /var/www/astina/app/Exceptions/Handler/Handler.php:106)

Exception

ErrorException

  1.     if (!$promUrls) {
  2.         // check cpath, if not valid - redirect!:
  3.         if ($cPath != ($valid_cpath = (isset($cPaths[$current_category_id]) ? $cPaths[$current_category_id] : $cPath))) {
  4.             $redirect_url tep_href_link(FILENAME_DEFAULT'cPath=' $valid_cpath);
  5.             header("HTTP/1.0 301 Moved Permanently");
  6.             header("Location: $redirect_url");
  7.             tep_exit();
  8.         }
  9.     }
  10. } else {
  11.     // if NOT category page: listing on main page, or manufacturers or product info or other pages:
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.     if (!$promUrls) {
  2.         // check cpath, if not valid - redirect!:
  3.         if ($cPath != ($valid_cpath = (isset($cPaths[$current_category_id]) ? $cPaths[$current_category_id] : $cPath))) {
  4.             $redirect_url tep_href_link(FILENAME_DEFAULT'cPath=' $valid_cpath);
  5.             header("HTTP/1.0 301 Moved Permanently");
  6.             header("Location: $redirect_url");
  7.             tep_exit();
  8.         }
  9.     }
  10. } else {
  11.     // if NOT category page: listing on main page, or manufacturers or product info or other pages:
require('/var/www/astina/includes/application_top.php') in /var/www/astina/index.php (line 7)
  1. use App\Classes\Cache\Helpers\FileCacheHelper;
  2. $start microtime(true);
  3. require('includes/application_top.php');
  4. checkTime('application_top');
  5. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_DEFAULT);

Stack Trace

ErrorException
ErrorException:
Cannot modify header information - headers already sent by (output started at /var/www/astina/app/Exceptions/Handler/Handler.php:106)

  at /var/www/astina/includes/application_top.php:1002
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at header()
     (/var/www/astina/includes/application_top.php:1002)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/index.php:7)