PHP warning

filemtime(): stat failed for /var/www/u1302250/data/home/wb/waysbook/server/www/i/country/emblem/small/43.png

/var/www/u1302250/data/home/wb/waysbook/server/vendor/z_bodya/yii-image-attachment/ImageAttachmentBehavior.php(134)

122             $id = $this->getImageId();
123         }
124         if ($ext === null) {
125             $ext = $this->extension;
126         }
127         return $version . '/' . $id . '.' . $ext;
128     }
129 
130     public function getUrl($version)
131     {
132         if (!$this->hasImage()) return null;
133         if (!empty($this->timeHash)) {
134             $time = filemtime($this->getFilePath($version));
135             $suffix = '?' . $this->timeHash . '=' . crc32($time);
136         } else {
137             $suffix = '';
138         }
139 
140         return $this->url . '/' . $this->getFileName($version) . $suffix;
141     }
142 
143     public function getFilePath($version, $ext = null)
144     {
145         return $this->directory . '/' . $this->getFileName($version, null, $ext);
146     }

Stack Trace

#0
+
 /var/www/u1302250/data/home/wb/waysbook/server/vendor/z_bodya/yii-image-attachment/ImageAttachmentBehavior.php(134): filemtime("/var/www/u1302250/data/home/wb/waysbook/server/www/i/country/emb...")
129 
130     public function getUrl($version)
131     {
132         if (!$this->hasImage()) return null;
133         if (!empty($this->timeHash)) {
134             $time = filemtime($this->getFilePath($version));
135             $suffix = '?' . $this->timeHash . '=' . crc32($time);
136         } else {
137             $suffix = '';
138         }
139 
#1
+
 /var/www/u1302250/data/home/wb/waysbook/server/vendor/twig/twig/lib/Twig/Template.php(460): ImageAttachmentBehavior->getUrl("small")
455         }
456 
457         // Some objects throw exceptions when they have __call, and the method we try
458         // to call is not supported. If ignoreStrictCheck is true, we should return null.
459         try {
460             $ret = call_user_func_array(array($object, $method), $arguments);
461         } catch (BadMethodCallException $e) {
462             if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
463                 return null;
464             }
465             throw $e;
#2
+
 /var/www/u1302250/data/home/wb/waysbook/server/protected/runtime/twigCache/5a/a0/3e569459de531db9a5feee2f2f7a5b3faea18500c5bdf535eec1d371a41c.php(105): Twig_Template->getAttribute(ImageAttachmentBehavior, "getUrl", array("small"), "method")
100         if ($this->getAttribute($this->getAttribute((isset($context["country"]) ? $context["country"] : null), "emblem"), "hasImage", array(), "method")) {
101             // line 66
102             echo "                    <div class=\"img\">
103                         <img src=\"";
104             // line 67
105             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["country"]) ? $context["country"] : null), "emblem"), "getUrl", array(0 => "small"), "method"), "html", null, true);
106             echo "\" alt=\"\" />
107                     </div>
108                 ";
109         }
110         // line 70
2024-03-19 10:05:25 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7 Yii Framework/1.1.14