Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

ont: normal 9pt "Verdana";\n\tcolor: #000;\n\tbackground: #fff;\n}\n\nh1 {\n\tfont: normal..

Decoded Output download

<?  ont: normal 9pt "Verdana";
	color: #000;
	background: #fff;
}

h1 {
	font: normal 18pt "Verdana";
	color: #f00;
	margin-bottom: .5em;
}

h2 {
	font: normal 14pt "Verdana";
	color: #800000;
	margin-bottom: .5em;
}

h3 {
	font: bold 11pt "Verdana";
}

pre {
	font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}

pre span.error {
	display: block;
	background: #fce3e3;
}

pre span.ln {
	color: #999;
	padding-right: 0.5em;
	border-right: 1px solid #ccc;
}

pre span.error-ln {
	font-weight: bold;
}

.container {
	margin: 1em 4em;
}

.version {
	color: gray;
	font-size: 8pt;
	border-top: 1px solid #aaa;
	padding-top: 1em;
	margin-bottom: 1em;
}

.message {
	color: #000;
	padding: 1em;
	font-size: 11pt;
	background: #f3f3f3;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	margin-bottom: 1em;
	line-height: 160%;
}

.source {
	margin-bottom: 1em;
}

.code pre {
	background-color: #ffe;
	margin: 0.5em 0;
	padding: 0.5em;
	line-height: 125%;
	border: 1px solid #eee;
}

.source .file {
	margin-bottom: 1em;
	font-weight: bold;
}

.traces {
	margin: 2em 0;
}

.trace {
	margin: 0.5em 0;
	padding: 0.5em;
}

.trace.app {
	border: 1px dashed #c00;
}

.trace .number {
	text-align: right;
	width: 2em;
	padding: 0.5em;
}

.trace .content {
	padding: 0.5em;
}

.trace .plus,
.trace .minus {
	display:inline;
	vertical-align:middle;
	text-align:center;
	border:1px solid #000;
	color:#000;
	font-size:10px;
	line-height:10px;
	margin:0;
	padding:0 1px;
	width:10px;
	height:10px;
}

.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
	display: none;
}

.trace-file {
	cursor: pointer;
	padding: 0.2em;
}

.trace-file:hover {
	background: #f0ffff;
}
/*]]>*/
</style>
</head>

<body>
<div class="container">
	<h1>PHP warning</h1>

	<p class="message">
		ZipArchive::locateName(): Invalid or unitialized Zip object	</p>

	<div class="source">
		<p class="file">/home/mb/app/protected/modules/om/services/TpStageCoverService.php(150)</p>
		<div class="code"><pre><span class="ln">138</span>         if($zip-&gt;open($component-&gt;getFSPatch())) {
<span class="ln">139</span>             $exts = [self::FILE_EXT_JPG, self::FILE_EXT_JPEG, self::FILE_EXT_PNG];
<span class="ln">140</span>             $extlessFilePaths = [
<span class="ln">141</span>                 $om-&gt;tp-&gt;nomenclature .&#039;/OFORMLENIE/&#039; . $om-&gt;tp-&gt;nomenclature,
<span class="ln">142</span>                 $om-&gt;tp-&gt;nomenclature .&#039;/OFORMLENIE/cover1&#039;,
<span class="ln">143</span>                 $om-&gt;tp-&gt;nomenclature .&#039;/OFORMLENIE/pereplet&#039;,
<span class="ln">144</span>             ];
<span class="ln">145</span> 
<span class="ln">146</span>             $fp = null;
<span class="ln">147</span>             foreach ($extlessFilePaths as $extlessFilePath) {
<span class="ln">148</span>                 foreach ($exts as $ext) {
<span class="ln">149</span>                     $filePath = $extlessFilePath . &#039;.&#039; . $ext;
<span class="error"><span class="ln error-ln">150</span>                     if ($zip-&gt;locateName($filePath)) {
</span><span class="ln">151</span>                         $fp = $zip-&gt;getStream($filePath);
<span class="ln">152</span>                         break 2;
<span class="ln">153</span>                     }
<span class="ln">154</span>                 }
<span class="ln">155</span>             }
<span class="ln">156</span> 
<span class="ln">157</span>             if ($fp) {
<span class="ln">158</span>                 $contents = &#039;&#039;;
<span class="ln">159</span>                 while (!feof($fp)) {
<span class="ln">160</span>                     $contents .= fread($fp, 2);
<span class="ln">161</span>                 }
<span class="ln">162</span> 
</pre></div>	</div>

	<div class="traces">
		<h2>Stack Trace</h2>
				<table style="width:100%;">
						<tr class="trace app expanded">
			<td class="number">
				#0			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/modules/om/services/TpStageCoverService.php(150): <strong>ZipArchive</strong>-><strong>locateName</strong>(&quot;40-0575-01/OFORMLENIE/40-0575-01.jpg&quot;)				</div>

				<div class="code"><pre><span class="ln">145</span> 
<span class="ln">146</span>             $fp = null;
<span class="ln">147</span>             foreach ($extlessFilePaths as $extlessFilePath) {
<span class="ln">148</span>                 foreach ($exts as $ext) {
<span class="ln">149</span>                     $filePath = $extlessFilePath . &#039;.&#039; . $ext;
<span class="error"><span class="ln error-ln">150</span>                     if ($zip-&gt;locateName($filePath)) {
</span><span class="ln">151</span>                         $fp = $zip-&gt;getStream($filePath);
<span class="ln">152</span>                         break 2;
<span class="ln">153</span>                     }
<span class="ln">154</span>                 }
<span class="ln">155</span>             }
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#1			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/modules/om/services/TpStageCoverService.php(128): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOm</strong>(MBOm, &quot;618&quot;)				</div>

				<div class="code"><pre><span class="ln">123</span>         if (!$om-&gt;import) {
<span class="ln">124</span>             throw new AppException(&quot;OM with id $omId has no import&quot;);
<span class="ln">125</span>         }
<span class="ln">126</span> 
<span class="ln">127</span>         $userId = $om-&gt;import-&gt;user_id;
<span class="error"><span class="ln error-ln">128</span>         $this-&gt;saveCoverFromOm($om, $userId);
</span><span class="ln">129</span>     }
<span class="ln">130</span> 
<span class="ln">131</span>     public function saveCoverFromOm(MBOm $om, $userId)
<span class="ln">132</span>     {
<span class="ln">133</span>         $component = $om-&gt;getRelated(OmComponentsArch::EXTERNAL_DECOR);
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#2			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/modules/om/controllers/TpStageCoverController.php(33): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOmById</strong>(&quot;918&quot;)				</div>

				<div class="code"><pre><span class="ln">28</span> 
<span class="ln">29</span>     public function actionSaveCoverFromOmById()
<span class="ln">30</span>     {
<span class="ln">31</span>         $serv = new TpStageCoverService();
<span class="ln">32</span>         try{
<span class="error"><span class="ln error-ln">33</span>             $serv-&gt;saveCoverFromOmById($this-&gt;getParam(&#039;om_id&#039;));
</span><span class="ln">34</span>             echo $this-&gt;ser()-&gt;serializeSuccess();
<span class="ln">35</span>         } catch(Exception $e) {
<span class="ln">36</span>             echo $this-&gt;ser()-&gt;serializeError($e-&gt;getCode(), $e-&gt;getMessage());
<span class="ln">37</span>         }
<span class="ln">38</span>     }
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#3			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): <strong>TpStageCoverController</strong>-><strong>actionSaveCoverFromOmById</strong>()				</div>

				<div class="code"><pre><span class="ln">44</span>         $controller=$this-&gt;getController();
<span class="ln">45</span>         $method=new ReflectionMethod($controller, $methodName);
<span class="ln">46</span>         if($method-&gt;getNumberOfParameters()&gt;0)
<span class="ln">47</span>             return $this-&gt;runWithParamsInternal($controller, $method, $params);
<span class="ln">48</span> 
<span class="error"><span class="ln error-ln">49</span>         $controller-&gt;$methodName();
</span><span class="ln">50</span>         return true;
<span class="ln">51</span>     }
<span class="ln">52</span> }
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#4			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(308): <strong>CInlineAction</strong>-><strong>runWithParams</strong>(array(&quot;om_id&quot; =&gt; &quot;918&quot;))				</div>

				<div class="code"><pre><span class="ln">303</span>     {
<span class="ln">304</span>         $priorAction=$this-&gt;_action;
<span class="ln">305</span>         $this-&gt;_action=$action;
<span class="ln">306</span>         if($this-&gt;beforeAction($action))
<span class="ln">307</span>         {
<span class="error"><span class="ln error-ln">308</span>             if($action-&gt;runWithParams($this-&gt;getActionParams())===false)
</span><span class="ln">309</span>                 $this-&gt;invalidActionParams($action);
<span class="ln">310</span>             else
<span class="ln">311</span>                 $this-&gt;afterAction($action);
<span class="ln">312</span>         }
<span class="ln">313</span>         $this-&gt;_action=$priorAction;
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#5			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): <strong>CController</strong>-><strong>runAction</strong>(CInlineAction)				</div>

				<div class="code"><pre><span class="ln">129</span>             $filter=$this-&gt;itemAt($this-&gt;filterIndex++);
<span class="ln">130</span>             Yii::trace(&#039;Running filter &#039;.($filter instanceof CInlineFilter ? get_class($this-&gt;controller).&#039;.filter&#039;.$filter-&gt;name.&#039;()&#039;:get_class($filter).&#039;.filter()&#039;),&#039;system.web.filters.CFilterChain&#039;);
<span class="ln">131</span>             $filter-&gt;filter($this);
<span class="ln">132</span>         }
<span class="ln">133</span>         else
<span class="error"><span class="ln error-ln">134</span>             $this-&gt;controller-&gt;runAction($this-&gt;action);
</span><span class="ln">135</span>     }
<span class="ln">136</span> }</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#6			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilter.php(40): <strong>CFilterChain</strong>-><strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">35</span>      */
<span class="ln">36</span>     public function filter($filterChain)
<span class="ln">37</span>     {
<span class="ln">38</span>         if($this-&gt;preFilter($filterChain))
<span class="ln">39</span>         {
<span class="error"><span class="ln error-ln">40</span>             $filterChain-&gt;run();
</span><span class="ln">41</span>             $this-&gt;postFilter($filterChain);
<span class="ln">42</span>         }
<span class="ln">43</span>     }
<span class="ln">44</span> 
<span class="ln">45</span>     /**
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#7			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(131): <strong>CFilter</strong>-><strong>filter</strong>(CFilterChain)				</div>

				<div class="code"><pre><span class="ln">126</span>     {
<span class="ln">127</span>         if($this-&gt;offsetExists($this-&gt;filterIndex))
<span class="ln">128</span>         {
<span class="ln">129</span>             $filter=$this-&gt;itemAt($this-&gt;filterIndex++);
<span class="ln">130</span>             Yii::trace(&#039;Running filter &#039;.($filter instanceof CInlineFilter ? get_class($this-&gt;controller).&#039;.filter&#039;.$filter-&gt;name.&#039;()&#039;:get_class($filter).&#039;.filter()&#039;),&#039;system.web.filters.CFilterChain&#039;);
<span class="error"><span class="ln error-ln">131</span>             $filter-&gt;filter($this);
</span><span class="ln">132</span>         }
<span class="ln">133</span>         else
<span class="ln">134</span>             $this-&gt;controller-&gt;runAction($this-&gt;action);
<span class="ln">135</span>     }
<span class="ln">136</span> }</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#8			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(291): <strong>CFilterChain</strong>-><strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">286</span>             $this-&gt;runAction($action);
<span class="ln">287</span>         else
<span class="ln">288</span>         {
<span class="ln">289</span>             $priorAction=$this-&gt;_action;
<span class="ln">290</span>             $this-&gt;_action=$action;
<span class="error"><span class="ln error-ln">291</span>             CFilterChain::create($this,$action,$filters)-&gt;run();
</span><span class="ln">292</span>             $this-&gt;_action=$priorAction;
<span class="ln">293</span>         }
<span class="ln">294</span>     }
<span class="ln">295</span> 
<span class="ln">296</span>     /**
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#9			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(CInlineAction, array(array(&quot;application.filters.InternalUsersFilter&quot;)))				</div>

				<div class="code"><pre><span class="ln">260</span>         {
<span class="ln">261</span>             if(($parent=$this-&gt;getModule())===null)
<span class="ln">262</span>                 $parent=Yii::app();
<span class="ln">263</span>             if($parent-&gt;beforeControllerAction($this,$action))
<span class="ln">264</span>             {
<span class="error"><span class="ln error-ln">265</span>                 $this-&gt;runActionWithFilters($action,$this-&gt;filters());
</span><span class="ln">266</span>                 $parent-&gt;afterControllerAction($this,$action);
<span class="ln">267</span>             }
<span class="ln">268</span>         }
<span class="ln">269</span>         else
<span class="ln">270</span>             $this-&gt;missingAction($actionID);
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#10			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): <strong>CController</strong>-><strong>run</strong>(&quot;saveCoverFromOmById&quot;)				</div>

				<div class="code"><pre><span class="ln">277</span>         {
<span class="ln">278</span>             list($controller,$actionID)=$ca;
<span class="ln">279</span>             $oldController=$this-&gt;_controller;
<span class="ln">280</span>             $this-&gt;_controller=$controller;
<span class="ln">281</span>             $controller-&gt;init();
<span class="error"><span class="ln error-ln">282</span>             $controller-&gt;run($actionID);
</span><span class="ln">283</span>             $this-&gt;_controller=$oldController;
<span class="ln">284</span>         }
<span class="ln">285</span>         else
<span class="ln">286</span>             throw new CHttpException(404,Yii::t(&#039;yii&#039;,&#039;Unable to resolve the request &quot;{route}&quot;.&#039;,
<span class="ln">287</span>                 array(&#039;{route}&#039;=&gt;$route===&#039;&#039;?$this-&gt;defaultController:$route)));
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#11			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>(&quot;om/tpStageCover/saveCoverFromOmById&quot;)				</div>

				<div class="code"><pre><span class="ln">136</span>             foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$value)
<span class="ln">137</span>                 $_GET[$name]=$value;
<span class="ln">138</span>         }
<span class="ln">139</span>         else
<span class="ln">140</span>             $route=$this-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());
<span class="error"><span class="ln error-ln">141</span>         $this-&gt;runController($route);
</span><span class="ln">142</span>     }
<span class="ln">143</span> 
<span class="ln">144</span>     /**
<span class="ln">145</span>      * Registers the core application components.
<span class="ln">146</span>      * This method overrides the parent implementation by registering additional core components.
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#12			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-><strong>processRequest</strong>()				</div>

				<div class="code"><pre><span class="ln">180</span>     public function run()
<span class="ln">181</span>     {
<span class="ln">182</span>         if($this-&gt;hasEventHandler(&#039;onBeginRequest&#039;))
<span class="ln">183</span>             $this-&gt;onBeginRequest(new CEvent($this));
<span class="ln">184</span>         register_shutdown_function(array($this,&#039;end&#039;),0,false);
<span class="error"><span class="ln error-ln">185</span>         $this-&gt;processRequest();
</span><span class="ln">186</span>         if($this-&gt;hasEventHandler(&#039;onEndRequest&#039;))
<span class="ln">187</span>             $this-&gt;onEndRequest(new CEvent($this));
<span class="ln">188</span>     }
<span class="ln">189</span> 
<span class="ln">190</span>     /**
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#13			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus"></div>
										&nbsp;/home/mb/app/public/index.php(7): <strong>CApplication</strong>-><strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">2</span> 
<span class="ln">3</span> require_once __DIR__ . &#039;/../protected/bootstrap/app.php&#039;;
<span class="ln">4</span> 
<span class="ln">5</span> $config = __DIR__ . &#039;/../protected/config/main.php&#039;;
<span class="ln">6</span> 
<span class="error"><span class="ln error-ln">7</span> Yii::createApplication(App\Foundation\WebApplication::class, $config)-&gt;run();
</span></pre></div>			</td>
		</tr>
				</table>
	</div>

	<div class="version">
		2024-06-11 13:07:22 Apache/2.4.7 (Ubuntu) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.25	</div>
</div>

<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");

var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
	if(traceReg.test(e[j].className)){
		e[j].onclick = function(){
			var trace = this.parentNode.parentNode;
			if(collapsedReg.test(trace.className))
				trace.className = trace.className.replace("collapsed", "expanded");
			else
				trace.className = trace.className.replace("expanded", "collapsed");
		}
	}
}
/*]]>*/
</script>

</body>
</html>
' ?>

Did this file decode correctly?

Original Code

ont: normal 9pt "Verdana";\n\tcolor: #000;\n\tbackground: #fff;\n}\n\nh1 {\n\tfont: normal 18pt "Verdana";\n\tcolor: #f00;\n\tmargin-bottom: .5em;\n}\n\nh2 {\n\tfont: normal 14pt "Verdana";\n\tcolor: #800000;\n\tmargin-bottom: .5em;\n}\n\nh3 {\n\tfont: bold 11pt "Verdana";\n}\n\npre {\n\tfont: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;\n}\n\npre span.error {\n\tdisplay: block;\n\tbackground: #fce3e3;\n}\n\npre span.ln {\n\tcolor: #999;\n\tpadding-right: 0.5em;\n\tborder-right: 1px solid #ccc;\n}\n\npre span.error-ln {\n\tfont-weight: bold;\n}\n\n.container {\n\tmargin: 1em 4em;\n}\n\n.version {\n\tcolor: gray;\n\tfont-size: 8pt;\n\tborder-top: 1px solid #aaa;\n\tpadding-top: 1em;\n\tmargin-bottom: 1em;\n}\n\n.message {\n\tcolor: #000;\n\tpadding: 1em;\n\tfont-size: 11pt;\n\tbackground: #f3f3f3;\n\t-webkit-border-radius: 10px;\n\t-moz-border-radius: 10px;\n\tborder-radius: 10px;\n\tmargin-bottom: 1em;\n\tline-height: 160%;\n}\n\n.source {\n\tmargin-bottom: 1em;\n}\n\n.code pre {\n\tbackground-color: #ffe;\n\tmargin: 0.5em 0;\n\tpadding: 0.5em;\n\tline-height: 125%;\n\tborder: 1px solid #eee;\n}\n\n.source .file {\n\tmargin-bottom: 1em;\n\tfont-weight: bold;\n}\n\n.traces {\n\tmargin: 2em 0;\n}\n\n.trace {\n\tmargin: 0.5em 0;\n\tpadding: 0.5em;\n}\n\n.trace.app {\n\tborder: 1px dashed #c00;\n}\n\n.trace .number {\n\ttext-align: right;\n\twidth: 2em;\n\tpadding: 0.5em;\n}\n\n.trace .content {\n\tpadding: 0.5em;\n}\n\n.trace .plus,\n.trace .minus {\n\tdisplay:inline;\n\tvertical-align:middle;\n\ttext-align:center;\n\tborder:1px solid #000;\n\tcolor:#000;\n\tfont-size:10px;\n\tline-height:10px;\n\tmargin:0;\n\tpadding:0 1px;\n\twidth:10px;\n\theight:10px;\n}\n\n.trace.collapsed .minus,\n.trace.expanded .plus,\n.trace.collapsed pre {\n\tdisplay: none;\n}\n\n.trace-file {\n\tcursor: pointer;\n\tpadding: 0.2em;\n}\n\n.trace-file:hover {\n\tbackground: #f0ffff;\n}\n/*]]>*/\n</style>\n</head>\n\n<body>\n<div class="container">\n\t<h1>PHP warning</h1>\n\n\t<p class="message">\n\t\tZipArchive::locateName(): Invalid or unitialized Zip object\t</p>\n\n\t<div class="source">\n\t\t<p class="file">/home/mb/app/protected/modules/om/services/TpStageCoverService.php(150)</p>\n\t\t<div class="code"><pre><span class="ln">138</span>         if($zip-&gt;open($component-&gt;getFSPatch())) {\n<span class="ln">139</span>             $exts = [self::FILE_EXT_JPG, self::FILE_EXT_JPEG, self::FILE_EXT_PNG];\n<span class="ln">140</span>             $extlessFilePaths = [\n<span class="ln">141</span>                 $om-&gt;tp-&gt;nomenclature .&#039;/OFORMLENIE/&#039; . $om-&gt;tp-&gt;nomenclature,\n<span class="ln">142</span>                 $om-&gt;tp-&gt;nomenclature .&#039;/OFORMLENIE/cover1&#039;,\n<span class="ln">143</span>                 $om-&gt;tp-&gt;nomenclature .&#039;/OFORMLENIE/pereplet&#039;,\n<span class="ln">144</span>             ];\n<span class="ln">145</span> \n<span class="ln">146</span>             $fp = null;\n<span class="ln">147</span>             foreach ($extlessFilePaths as $extlessFilePath) {\n<span class="ln">148</span>                 foreach ($exts as $ext) {\n<span class="ln">149</span>                     $filePath = $extlessFilePath . &#039;.&#039; . $ext;\n<span class="error"><span class="ln error-ln">150</span>                     if ($zip-&gt;locateName($filePath)) {\n</span><span class="ln">151</span>                         $fp = $zip-&gt;getStream($filePath);\n<span class="ln">152</span>                         break 2;\n<span class="ln">153</span>                     }\n<span class="ln">154</span>                 }\n<span class="ln">155</span>             }\n<span class="ln">156</span> \n<span class="ln">157</span>             if ($fp) {\n<span class="ln">158</span>                 $contents = &#039;&#039;;\n<span class="ln">159</span>                 while (!feof($fp)) {\n<span class="ln">160</span>                     $contents .= fread($fp, 2);\n<span class="ln">161</span>                 }\n<span class="ln">162</span> \n</pre></div>\t</div>\n\n\t<div class="traces">\n\t\t<h2>Stack Trace</h2>\n\t\t\t\t<table style="width:100%;">\n\t\t\t\t\t\t<tr class="trace app expanded">\n\t\t\t<td class="number">\n\t\t\t\t#0\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/modules/om/services/TpStageCoverService.php(150): <strong>ZipArchive</strong>-><strong>locateName</strong>(&quot;40-0575-01/OFORMLENIE/40-0575-01.jpg&quot;)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">145</span> \n<span class="ln">146</span>             $fp = null;\n<span class="ln">147</span>             foreach ($extlessFilePaths as $extlessFilePath) {\n<span class="ln">148</span>                 foreach ($exts as $ext) {\n<span class="ln">149</span>                     $filePath = $extlessFilePath . &#039;.&#039; . $ext;\n<span class="error"><span class="ln error-ln">150</span>                     if ($zip-&gt;locateName($filePath)) {\n</span><span class="ln">151</span>                         $fp = $zip-&gt;getStream($filePath);\n<span class="ln">152</span>                         break 2;\n<span class="ln">153</span>                     }\n<span class="ln">154</span>                 }\n<span class="ln">155</span>             }\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace app expanded">\n\t\t\t<td class="number">\n\t\t\t\t#1\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/modules/om/services/TpStageCoverService.php(128): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOm</strong>(MBOm, &quot;618&quot;)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">123</span>         if (!$om-&gt;import) {\n<span class="ln">124</span>             throw new AppException(&quot;OM with id $omId has no import&quot;);\n<span class="ln">125</span>         }\n<span class="ln">126</span> \n<span class="ln">127</span>         $userId = $om-&gt;import-&gt;user_id;\n<span class="error"><span class="ln error-ln">128</span>         $this-&gt;saveCoverFromOm($om, $userId);\n</span><span class="ln">129</span>     }\n<span class="ln">130</span> \n<span class="ln">131</span>     public function saveCoverFromOm(MBOm $om, $userId)\n<span class="ln">132</span>     {\n<span class="ln">133</span>         $component = $om-&gt;getRelated(OmComponentsArch::EXTERNAL_DECOR);\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace app expanded">\n\t\t\t<td class="number">\n\t\t\t\t#2\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/modules/om/controllers/TpStageCoverController.php(33): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOmById</strong>(&quot;918&quot;)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">28</span> \n<span class="ln">29</span>     public function actionSaveCoverFromOmById()\n<span class="ln">30</span>     {\n<span class="ln">31</span>         $serv = new TpStageCoverService();\n<span class="ln">32</span>         try{\n<span class="error"><span class="ln error-ln">33</span>             $serv-&gt;saveCoverFromOmById($this-&gt;getParam(&#039;om_id&#039;));\n</span><span class="ln">34</span>             echo $this-&gt;ser()-&gt;serializeSuccess();\n<span class="ln">35</span>         } catch(Exception $e) {\n<span class="ln">36</span>             echo $this-&gt;ser()-&gt;serializeError($e-&gt;getCode(), $e-&gt;getMessage());\n<span class="ln">37</span>         }\n<span class="ln">38</span>     }\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#3\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): <strong>TpStageCoverController</strong>-><strong>actionSaveCoverFromOmById</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">44</span>         $controller=$this-&gt;getController();\n<span class="ln">45</span>         $method=new ReflectionMethod($controller, $methodName);\n<span class="ln">46</span>         if($method-&gt;getNumberOfParameters()&gt;0)\n<span class="ln">47</span>             return $this-&gt;runWithParamsInternal($controller, $method, $params);\n<span class="ln">48</span> \n<span class="error"><span class="ln error-ln">49</span>         $controller-&gt;$methodName();\n</span><span class="ln">50</span>         return true;\n<span class="ln">51</span>     }\n<span class="ln">52</span> }\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#4\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(308): <strong>CInlineAction</strong>-><strong>runWithParams</strong>(array(&quot;om_id&quot; =&gt; &quot;918&quot;))\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">303</span>     {\n<span class="ln">304</span>         $priorAction=$this-&gt;_action;\n<span class="ln">305</span>         $this-&gt;_action=$action;\n<span class="ln">306</span>         if($this-&gt;beforeAction($action))\n<span class="ln">307</span>         {\n<span class="error"><span class="ln error-ln">308</span>             if($action-&gt;runWithParams($this-&gt;getActionParams())===false)\n</span><span class="ln">309</span>                 $this-&gt;invalidActionParams($action);\n<span class="ln">310</span>             else\n<span class="ln">311</span>                 $this-&gt;afterAction($action);\n<span class="ln">312</span>         }\n<span class="ln">313</span>         $this-&gt;_action=$priorAction;\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#5\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): <strong>CController</strong>-><strong>runAction</strong>(CInlineAction)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">129</span>             $filter=$this-&gt;itemAt($this-&gt;filterIndex++);\n<span class="ln">130</span>             Yii::trace(&#039;Running filter &#039;.($filter instanceof CInlineFilter ? get_class($this-&gt;controller).&#039;.filter&#039;.$filter-&gt;name.&#039;()&#039;:get_class($filter).&#039;.filter()&#039;),&#039;system.web.filters.CFilterChain&#039;);\n<span class="ln">131</span>             $filter-&gt;filter($this);\n<span class="ln">132</span>         }\n<span class="ln">133</span>         else\n<span class="error"><span class="ln error-ln">134</span>             $this-&gt;controller-&gt;runAction($this-&gt;action);\n</span><span class="ln">135</span>     }\n<span class="ln">136</span> }</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#6\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilter.php(40): <strong>CFilterChain</strong>-><strong>run</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">35</span>      */\n<span class="ln">36</span>     public function filter($filterChain)\n<span class="ln">37</span>     {\n<span class="ln">38</span>         if($this-&gt;preFilter($filterChain))\n<span class="ln">39</span>         {\n<span class="error"><span class="ln error-ln">40</span>             $filterChain-&gt;run();\n</span><span class="ln">41</span>             $this-&gt;postFilter($filterChain);\n<span class="ln">42</span>         }\n<span class="ln">43</span>     }\n<span class="ln">44</span> \n<span class="ln">45</span>     /**\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#7\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(131): <strong>CFilter</strong>-><strong>filter</strong>(CFilterChain)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">126</span>     {\n<span class="ln">127</span>         if($this-&gt;offsetExists($this-&gt;filterIndex))\n<span class="ln">128</span>         {\n<span class="ln">129</span>             $filter=$this-&gt;itemAt($this-&gt;filterIndex++);\n<span class="ln">130</span>             Yii::trace(&#039;Running filter &#039;.($filter instanceof CInlineFilter ? get_class($this-&gt;controller).&#039;.filter&#039;.$filter-&gt;name.&#039;()&#039;:get_class($filter).&#039;.filter()&#039;),&#039;system.web.filters.CFilterChain&#039;);\n<span class="error"><span class="ln error-ln">131</span>             $filter-&gt;filter($this);\n</span><span class="ln">132</span>         }\n<span class="ln">133</span>         else\n<span class="ln">134</span>             $this-&gt;controller-&gt;runAction($this-&gt;action);\n<span class="ln">135</span>     }\n<span class="ln">136</span> }</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#8\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(291): <strong>CFilterChain</strong>-><strong>run</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">286</span>             $this-&gt;runAction($action);\n<span class="ln">287</span>         else\n<span class="ln">288</span>         {\n<span class="ln">289</span>             $priorAction=$this-&gt;_action;\n<span class="ln">290</span>             $this-&gt;_action=$action;\n<span class="error"><span class="ln error-ln">291</span>             CFilterChain::create($this,$action,$filters)-&gt;run();\n</span><span class="ln">292</span>             $this-&gt;_action=$priorAction;\n<span class="ln">293</span>         }\n<span class="ln">294</span>     }\n<span class="ln">295</span> \n<span class="ln">296</span>     /**\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#9\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(CInlineAction, array(array(&quot;application.filters.InternalUsersFilter&quot;)))\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">260</span>         {\n<span class="ln">261</span>             if(($parent=$this-&gt;getModule())===null)\n<span class="ln">262</span>                 $parent=Yii::app();\n<span class="ln">263</span>             if($parent-&gt;beforeControllerAction($this,$action))\n<span class="ln">264</span>             {\n<span class="error"><span class="ln error-ln">265</span>                 $this-&gt;runActionWithFilters($action,$this-&gt;filters());\n</span><span class="ln">266</span>                 $parent-&gt;afterControllerAction($this,$action);\n<span class="ln">267</span>             }\n<span class="ln">268</span>         }\n<span class="ln">269</span>         else\n<span class="ln">270</span>             $this-&gt;missingAction($actionID);\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#10\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): <strong>CController</strong>-><strong>run</strong>(&quot;saveCoverFromOmById&quot;)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">277</span>         {\n<span class="ln">278</span>             list($controller,$actionID)=$ca;\n<span class="ln">279</span>             $oldController=$this-&gt;_controller;\n<span class="ln">280</span>             $this-&gt;_controller=$controller;\n<span class="ln">281</span>             $controller-&gt;init();\n<span class="error"><span class="ln error-ln">282</span>             $controller-&gt;run($actionID);\n</span><span class="ln">283</span>             $this-&gt;_controller=$oldController;\n<span class="ln">284</span>         }\n<span class="ln">285</span>         else\n<span class="ln">286</span>             throw new CHttpException(404,Yii::t(&#039;yii&#039;,&#039;Unable to resolve the request &quot;{route}&quot;.&#039;,\n<span class="ln">287</span>                 array(&#039;{route}&#039;=&gt;$route===&#039;&#039;?$this-&gt;defaultController:$route)));\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#11\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>(&quot;om/tpStageCover/saveCoverFromOmById&quot;)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">136</span>             foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$value)\n<span class="ln">137</span>                 $_GET[$name]=$value;\n<span class="ln">138</span>         }\n<span class="ln">139</span>         else\n<span class="ln">140</span>             $route=$this-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());\n<span class="error"><span class="ln error-ln">141</span>         $this-&gt;runController($route);\n</span><span class="ln">142</span>     }\n<span class="ln">143</span> \n<span class="ln">144</span>     /**\n<span class="ln">145</span>      * Registers the core application components.\n<span class="ln">146</span>      * This method overrides the parent implementation by registering additional core components.\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#12\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/protected/vendor/yiisoft/yii/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-><strong>processRequest</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">180</span>     public function run()\n<span class="ln">181</span>     {\n<span class="ln">182</span>         if($this-&gt;hasEventHandler(&#039;onBeginRequest&#039;))\n<span class="ln">183</span>             $this-&gt;onBeginRequest(new CEvent($this));\n<span class="ln">184</span>         register_shutdown_function(array($this,&#039;end&#039;),0,false);\n<span class="error"><span class="ln error-ln">185</span>         $this-&gt;processRequest();\n</span><span class="ln">186</span>         if($this-&gt;hasEventHandler(&#039;onEndRequest&#039;))\n<span class="ln">187</span>             $this-&gt;onEndRequest(new CEvent($this));\n<span class="ln">188</span>     }\n<span class="ln">189</span> \n<span class="ln">190</span>     /**\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace app collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#13\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t&nbsp;/home/mb/app/public/index.php(7): <strong>CApplication</strong>-><strong>run</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">2</span> \n<span class="ln">3</span> require_once __DIR__ . &#039;/../protected/bootstrap/app.php&#039;;\n<span class="ln">4</span> \n<span class="ln">5</span> $config = __DIR__ . &#039;/../protected/config/main.php&#039;;\n<span class="ln">6</span> \n<span class="error"><span class="ln error-ln">7</span> Yii::createApplication(App\\Foundation\\WebApplication::class, $config)-&gt;run();\n</span></pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t</table>\n\t</div>\n\n\t<div class="version">\n\t\t2024-06-11 13:07:22 Apache/2.4.7 (Ubuntu) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.25\t</div>\n</div>\n\n<script type="text/javascript">\n/*<![CDATA[*/\nvar traceReg = new RegExp("(^|\\\\s)trace-file(\\\\s|$)");\nvar collapsedReg = new RegExp("(^|\\\\s)collapsed(\\\\s|$)");\n\nvar e = document.getElementsByTagName("div");\nfor(var j=0,len=e.length;j<len;j++){\n\tif(traceReg.test(e[j].className)){\n\t\te[j].onclick = function(){\n\t\t\tvar trace = this.parentNode.parentNode;\n\t\t\tif(collapsedReg.test(trace.className))\n\t\t\t\ttrace.className = trace.className.replace("collapsed", "expanded");\n\t\t\telse\n\t\t\t\ttrace.className = trace.className.replace("expanded", "collapsed");\n\t\t}\n\t}\n}\n/*]]>*/\n</script>\n\n</body>\n</html>\n'

Function Calls

None

Variables

None

Stats

MD5 acea53bcec0f58adf3da66f6e030dedb
Eval Count 0
Decode Time 88 ms