Jump to content

Recommended Posts

Добрый день форумчане!

Столкнулся с ошибкой при формировании прайс листа. Не получается найти причину.

Warning: Attempt to modify property of non-object in /####/vqmod/vqcache/vq2-view_PricelistView.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at //####/vqmod/vqcache/vq2-view_PricelistView.php:111) in /####/vqmod/vqcache/vq2-view_PricelistView.php on line 362

Warning: Cannot modify header information - headers already sent by (output started at //####/vqmod/vqcache/vq2-view_PricelistView.php:111) in /####/vqmod/vqcache/vq2-view_PricelistView.php on line 363

Warning: Cannot modify header information - headers already sent by (output started at //####/vqmod/vqcache/vq2-view_PricelistView.php:111) in /####/vqmod/vqcache/vq2-view_PricelistView.php on line 364
PK�����]�UG�D�X����[Content_Types].xml��MN�0����"��%nY ��vAa �(�0����ؖg�w{&i���@�nbE�{��y��d۸l m��������X�(���)�����F���;@1�_������c)j�x/%����E��y� �QĿi!��K�y3��J�<���Z�1��0?Y��L%zV c��Ib7�������a/l٥P1:��q�r���j���j0A������u�"��"����(� �����W�M��)Tj�({ܲ�>���O���,X٭���>B��~׭����Ӥ6�J=�oBZ����t��X4���Cg�,���Qg�mr�L����ٯc�e��t�� Z�?����hPv��±���u�j���R������}�Cv����PK�����]�U��78�K��_rels/.rels���j�0���{ �{���1F�^ʠ�2���l�$���-}�y�����Î��O��v�y��;�؋Ӱ.JP��޵�^������Y�ű�3G�Ww�g�)���>��qQC���D���b!�]�i$L��3�����2n����o�T��:Z �h����[��4�ი��]���yN�,ە��>�>��j -'

 

что находится в файле vq2-view_PricelistView.php 111 строка

				{
					foreach($product->categories as $c)
						unset($pricelist[$c]->products[$product->id]);

					unset($products[$product->id]);
				}

 

код 362, 363, 364 строки

 

		//header( "Content-type: application/vnd.ms-excel" );
		header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
		header( 'Content-Disposition: attachment;filename="' .$price_name.' '.date( "dmy" ) . '.xlsx"' );
		header( 'Cache-Control: max-age=0' );
		$objWriter = PHPExcel_IOFactory::createWriter( $objPHPExcel, 'Excel2007' );
		//$objWriter->setTempDir( $_SERVER['DOCUMENT_ROOT'] . '/cache' );
		$objWriter->save( 'php://output' );

 

подскажите что и где посмотреть/поправить

Link to post
Share on other sites

используется версия php 7.1

ранее стояла 5.6... но на 7.1. в последний раз когда проверял- работал прайс...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...