Phalcon Framework 3.4.5

Exception: Trying to get property of non-object\n/home/storefi1/public_html/app/frontend/views/references/index.phtml:194

/home/storefi1/public_html/public/index.php (16)
#0{closure}(8, Trying to get property of non-object, /home/storefi1/public_html/app/frontend/views/references/index.phtml, 194, Array(20))
/home/storefi1/public_html/app/frontend/views/references/index.phtml (194)
 
<div class="container-fluid references-container">
  <div class="row">
    <div class="col-12 offset-lg-0 offset-xxl-2 col-lg-9 col-xxl-6 border-end ">
         <nav style="--bs-breadcrumb-divider: url(&quot;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E&quot;);" aria-label="breadcrumb">
                <?php echo $breadcrumbs; ?>
        </nav>
 
      <!-- mitte start //-->
      <h1 class="font-weight-bold mb-0"><?php echo $reference_translation->name; ?></h1>
      <p class="m-0 text-dark small clearfix pb-3"><span class="float-start">
<?php echo $trans->_('Referenz von',['publisher' => $publisher  ]); ?></span><span class="float-end"><i class="bi bi-share"></i> <?php echo $trans->_('Teilen'); ?></span>  </p>
 
    
        <?php 
              if( !empty( $reference_translation->intro ) ){
                  echo htmlspecialchars_decode( $reference_translation->intro );
              }
        ?>
 
        <?php 
            ##################################################### 
            # Referenz-Bilder Anzeige
            $referencesFolderPath = $this->config->application->uploadDir . 'service-providers/' . $service_provider->folder_path . 'references/'.$reference_translation->reference_id.'/';
 
            $referencesArray = glob($referencesFolderPath. '*'); // get all file names
            if($referencesArray)
                {
                echo '<div class="row">';
 
                    foreach($referencesArray as $file)
                    { // iterate files
 
                        if(is_file($file))
                        {
                            echo '<div class="col-12">';
                                $referencesUrl = $this->config->application->frontend->baseUriServiceProvider . $service_provider->folder_path . 'references/'. $reference_translation->reference_id. '/' . basename($file); 
                                echo '<img  class="img-fluid pt-2 lazy" title="'.$specialisation_translations->name .' Projekt '.$service_provider->companyname.'" alt="'.$specialisation_translations->name .' Projekt '.$service_provider->companyname.'" src="'. $this->config->application->preloader.'" data-src="'.$referencesUrl.'" />';
                            echo '</div>';
 
                        }
 
                    }
 
                echo '</div>';
                }else{
                    echo "<i>Keine Referenzbilder vorhanden</i>";
                }
                #############################################    
            ?>
 
              <?php 
                  if( !empty( $reference_translation->customers_vote ) ){
                 ?>
                <div class="streak grey lighten-3 mt-1">
                <div class="flex-center">
                  <ul class="mb-0 list-unstyled">
                    <li>
                      <p class="h6 font-italic"><i class="bi bi-blockquote-left"></i> 
                        <?php echo $reference_translation->customers_vote; ?> 
                        <i class="bi bi-blockquote-right"></i>
                    </p>
                    </li>
                    </ul>
                </div>
              </div>
            <?php
              }
              ?> 
      <!-- mitte end //-->
    </div>
    <div class="col-12 col-lg-3 col-xxl-2 border-end border-botttom ">
        <!-- right sidebar start //-->
          <hr class="d-block d-md-none">
        <div class="row mt-3">
            <div class="col-12">
                <p class="h5 font-weight-bold">Projektrealisierung:</p>
            </div>
            <div class="col-6 col-md-12">
                
                  <?php $service_provider_url = $this->url->get([
                                'for' => 'frontend_service_providers_index',
                                'url_slug' => $service_provider->url_slug,
                                'lang' => $this->session->global_country['url_key']
                            ]);
                    ?>
                    <p>
                        <a href="<?php echo $service_provider_url; ?>" title="<?php echo $service_provider->companyname; ?>">
                        <img src="<?php echo $this->config->application->preloader; ?>" data-src="<?php echo $this->config->application->frontend->baseUriServiceProvider.$service_provider->folder_path.$service_provider->logo; ?>" data-alt="<?php echo $service_provider->companyname; ?>" data-title="<?php echo $service_provider->companyname; ?>" class="lazy img-fluid img-thumbnail" >
                        <br />
                        <span class="font-weight-bold">
                                        <?php echo $service_provider->companyname; ?>
                        </span>
                    </a>
                    <br />
                                      <?php echo $service_provider->street; ?><br />
                                      <?php echo $service_provider->postalcode . ' ' . $service_provider->city; ?> 
                    </p>
            </div>
             <div class="col-6 col-md-12">
                <p class="h6 mb-0 font-weight-bold">Kontakt:</p>
                <p class="small  ms-2">
                    <?php if( !empty( $service_provider->telephone ) ){ ?>
                                             
                          <i class="fas fa-phone" data-toggle="tooltip" title="Telefonnummer von <?php echo $service_provider->companyname; ?>"></i> <?php echo $service_provider->telephone; ?>
                             <br />  
                      <?php }?>
                    
                   <?php if( !empty( $service_provider->fax ) ){ ?>
                        <i class="fas fa-fax" data-toggle="tooltip" title="Faxnummer von <?php echo $service_provider->companyname; ?>"></i> <?php echo $service_provider->fax; ?>
                        <br />
                    <?php }?>
                    
                    <?php if( !empty( $service_provider->email ) ){ ?>
                       <i class="fas fa-envelope" data-toggle="tooltip" title="Email-Adresse von <?php echo $service_provider->companyname; ?>"></i> <?php echo $service_provider->email; ?>
                    <?php }?>       
                </p>
                <p class="h6 mb-0 font-weight-bold">Links zur Firma:</p>
                <p class="small ms-2">
                    <?php if( !empty( $service_provider->website_url ) ){ ?>               
                        <i class="bi bi-house-door"></i> <a href="/de/service-providers/redirect?v=<?php echo $service_provider->website_url; ?>" target="_blank" rel="nofollow" class="text-decoration-none" title="Homepage von <?php echo $service_provider->companyname; ?>"> zur Homepage</a><br />
                                  <?php } if( !empty( $service_provider->instagram_url ) ){ ?>  
                    <i class="bi bi-instagram"></i> <a href="<?php echo $service_provider->instagram_url; ?>" target="_blank" rel="nofollow" class="text-decoration-none"> Instagram-Profil</a><br />
                                  <?php } if( !empty( $service_provider->linkedin_url ) ){ ?> 
                    <i class="bi bi-linkedin"></i> <a href="<?php echo $service_provider->linkedin_url; ?>" target="_blank" rel="nofollow" class="text-decoration-none"> Linkedin-Profil</a><br />
                                  <?php } if( !empty( $service_provider->xing_url ) ){ ?> 
                    <i class="bi bi-link"></i> <a href="<?php echo $service_provider->xing_url; ?>" target="_blank" rel="nofollow" class="text-decoration-none"> Xing-Profil</a><br />
                                  <?php } if( !empty( $service_provider->twitter_url ) ){ ?> 
                    <i class="bi bi-twitter"></i> <a href="<?php echo $service_provider->twitter_url; ?>" target="_blank" rel="nofollow" class="text-decoration-none">Twitter-Profil</a><br />
                               <?php } if( !empty( $service_provider->facebook_url ) ){ ?> 
                    <i class="bi bi-facebook"></i> <a href="<?php echo $service_provider->facebook_url; ?>" target="_blank" rel="nofollow" class="text-decoration-none">Facebook-Profil</a><br />
                                <?php } ?> 
                </p>
            </div>
        </div>
        <hr class="my-4">
        <div class="row">
            <div class="col-12">
                <?php if( $product_category_translations ){ ?>
                    <p class="h6 font-weight-bold mb-0">Projektart:</p>
                    <?php 
                   $product_category_url = $this->url->get([
                        'for' => 'frontend_product_categories_index',
                        'url_slug' => $product_category_translations->url_slug,
                        'lang' => $this->session->global_country['url_key']
                    ]);
                    
                  ?>
 
                     <p class="ms-2">
                        <a href="<?php echo $product_category_url; ?>" title="<?php echo $product_category_translations->name; ?>" class="small"><?php echo $product_category_translations->name; ?></a>
                    </p>
                <?php } ?>
 
                <?php if( !empty($reference_translation->References->street) &&  !empty($reference_translation->References->postalcode) && !empty($reference_translation->References->city) && !empty($reference_translation->References->country)  ) { ?>
                <p class="h6 font-weight-bold mb-0">Adresse:</p>
                <p class="small ms-2"><?php echo $reference_translation->References->street . ', '. $reference_translation->References->postalcode . ' ' . $reference_translation->References->city .', ' . $reference_translation->References->country; ?></p>
                     
                 <?php } ?>
 
 
             <?php if( !empty($reference_translation->References->shop_size) ) {?>
                  <p class="font-weight-bold mb-0 h6">Projektgröße:</p> 
                  <p class="small ms-2"><?php echo $reference_translation->References->shop_size; ?> qm</p>
              <?php  } ?>   
 
 
            <?php 
                ## NICHT JEDE REFERENZ hat eine BRAND (bsp. Kindergarten, etc.)
                if( isset( $brand_translations->Brands->url_slug) )  {  ?>
                  <p class="h6 mb-0 font-weight-bold">Kunde:</p>           
                      <?php 
                           $brand_url = $this->url->get([
                                'for' => 'frontend_brands_index',
                                'url_slug' => $brand_translations->Brands->url_slug,
                                'lang' => $this->session->global_country['url_key']
                            ]);
                            
                ?>
 
                <p class="ms-2">
                    <a href="<?php echo $brand_url; ?>" title="<?php echo $specialisation_translations->name . " " . $brand_translations->Brands->name; ?>" class="small"><?php echo $brand_translations->Brands->name; ?></a>
                </p>
 
                <?php 
                } ## END if( isset() )       
                ?>
 
 
                <p class="h6 mb-0 font-weight-bold">Branche:</p>
                  <?php 
                   $section_url = $this->url->get([
                        'for' => 'frontend_sections_index',
                        'url_slug' => $section_translations->url_slug,
                        'specialisation_url_slug' => $specialisation_translations->url_slug,
                        'lang' => $this->session->global_country['url_key']
                    ]);
                    
                  ?>
                <p class="ms-2">
                    <a href="<?php echo $section_url; ?>" title="<?php echo $specialisation_translations->name . " " . $section_translations->name; ?>" class="small">
                    <?php echo $section_translations->name; ?> 
                  </a>
                </p>
           </div>
        </div>
        <div class="row">
            <div class="col-12">
                <?php
                  if( $services->count() > 0)
                  {
                  ?><hr class="my-4">
                    <p><strong>Eingebrachte Leistungen: </strong></p>
                    <ul class="mb-0 list-unstyled">
                        <?php
                          foreach ( $services as $serivce ){
                              ?>
                        <li class="mb-2">
 
                            <a class="text-decoration-underline" href="<?php echo $this->url->get([
                                    'for' => 'frontend_services_index',
                                    'specialisation_translations_url_slug'=> $specialisation_translations->url_slug,
                                    'url_slug' => $serivce['multiple\Backend\Models\ServiceTranslations']->url_slug,
                                    'lang' => $this->session->global_country['url_key']
                                    ]); ?>" title="<?php echo $specialisation_translations->name . ' ' . $serivce['multiple\Backend\Models\ServiceTranslations']->name; ?>">
                                <i class="bi bi-caret-right-fill"></i>  <?php echo $serivce['multiple\Backend\Models\ServiceTranslations']->name;  ?>
                            </a>
                            <?php 
                              if( empty( $serivce['multiple\Backend\Models\ReferenceServices']->description ) ){
                                 // echo "<i>Keine Leistungsbeschreibung vorhanden</i>";
                              }else{
                                  ?>
                                <ul class="mb-0 ms-2 list-unstyled small">
                                    <li>
                                        <?php echo $serivce['multiple\Backend\Models\ReferenceServices']->description; ?>
                                    </li>
                                </ul>
                                  <?php
                              }
                              ?>
                            
                        </li>
                        <?php
                          }
                        ?>
                    </ul>
                  <?php
                  }
                  ?>
            </div>
        </div>
      <!-- right sidebar end //-->
    </div>
  </div>
</div>
 
<?php # echo $trans->_('hi'); ?>
 
 
 
 
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Project",
  "name": "<?php echo $reference_translation->name; ?>",
  "description": "<?php echo  \Multiple\Library\SeoPlugin::cleanHTMLText( htmlspecialchars_decode( $reference_translation->intro ) ); ?>",
  "url": "<?php echo $current_url; ?>",
  "image": "<?php echo $referencesUrl; ?>"
  
}
</script>
 
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "<?php echo $current_url; ?>",
  "name": "<?php echo $service_provider->companyname; ?>",
  "url": "<?php echo $service_provider->website_url;?>",
  "logo": "<?php echo $this->config->application->frontend->baseUriServiceProvider.$service_provider->folder_path.$service_provider->logo; ?>",
  "description": " <?php echo $specialisation_translations->name. ': '. $service_provider->companyname; ?>",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "<?php echo $service_provider->street;?>",
    "addressLocality": "<?php echo $service_provider->city;?>",
    "postalCode": "<?php echo $service_provider->postalcode;?>",
    "addressCountry": "Deutschland"
  },
  "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "<?php echo $service_provider->telephone;?>",
    "contactType": "Vertrieb"
  },
  "sameAs": [
    "<?php echo $service_provider->facebook_url;?>",
    "<?php echo $service_provider->twitter_url;?>",
    "<?php echo $service_provider->linkedin_url;?>",
    "<?php echo $service_provider->xing_url;?>"
  ]
}
</script>
#1Phalcon\Mvc\View\Engine\Php->render(../app/frontend/views/references/index.phtml, Array(14), true)
#2Phalcon\Mvc\View->_engineRender(Array([.phtml] => Object(Phalcon\Mvc\View\Engine\Php)), references/index, true, true, null)
#3Phalcon\Mvc\View->render(references, index)
#4Phalcon\Mvc\Application->handle()
/home/storefi1/public_html/public/index.php (54)
<?php 
//define('WP_USE_THEMES', false);
//require('../magazin/wp-load.php');
//require('../magazin/wp-blog-header.php');
?>
<?php
#phpinfo();die;
#print_r($_SERVER);die;
 
// report all errors
  error_reporting(E_ALL);
  ini_set('display_errors',TRUE);
  ini_set('display_startup_errors', TRUE);
// convert warnings/notices to exceptions
set_error_handler(function($errno, $errstr, $errfile, $errline) {
    throw new \Exception($errstr.PHP_EOL.$errfile.":".$errline, $errno);
});
 
 
try {
    
    /**
     * Read the configuration
     */
    $config = include __DIR__ . "/../app/_config/config.php";
 
    /**
     * Read auto-loader
     */
    include __DIR__ . "/../app/_config/loader.php";
 
    /**
     * Read services
     */
    include __DIR__ . "/../app/_config/services.php";
 
    /**
     * Handle the request
     */
    $application = new \Phalcon\Mvc\Application($di);
 
     // Register the installed modules
    $application->registerModules([
        'frontend' => [
            'className' => 'Multiple\Frontend\Module',
            'path'      => '../app/frontend/Module.php'
        ],
        'backend'  => [
            'className' => 'Multiple\Backend\Module',
            'path'      => '../app/backend/Module.php'
        ]
    ]);
 
    echo $content_output =  $application->handle()->getContent();
 
    #echo minifier( $content_output );
    
 
 
} catch (\Exception $e) {
 
 
      $message = get_class($e). ": ".$e->getMessage(). "\n"
         . " File=". $e->getFile(). "\n"
         . " Line=". $e->getLine(). "\n"
         . $e->getTraceAsString() . "\n";
      
       /* $logger = new \Phalcon\Logger\Adapter\File($config->application->logDir.'error.log');
        $logger->error($message);*/
        
        echo $message;
 
        ########################## 
        ##### Debug deaktivieren on live: 
        $debug = new \Phalcon\Debug();
        die($debug->listen()->onUncaughtException($e));
      
}
 
 
 
 
function minifier($code) {
    // Definiert reguläre Ausdrücke zum Entfernen von Leerzeichen und Kommentaren im HTML-Code
    $html_search = [
        '/>\s+/',              // Whitespace nach Schließ-Tags entfernen
        '/\s+</',              // Whitespace vor Öffnungs-Tags entfernen
        '/(\s)+/s',            // Aufeinanderfolgende Whitespace-Sequenzen durch ein Leerzeichen ersetzen
        '/<!--(.|\s)*?-->/'    // HTML-Kommentare entfernen
    ];
 
    // Ersetzungen für den HTML-Code
    $html_replace = [
        '>',
        '<',
        ' ',
        ''
    ];
 
    // Führt die Minifizierung für den HTML-Code durch
    $code = preg_replace($html_search, $html_replace, $code);
 
    return $code;
}
KeyValue
_url/de/ref/becycle-141
KeyValue
PATH/usr/local/bin:/bin:/usr/bin
DOCUMENT_ROOT/home/storefi1/public_html
HTTP_ACCEPT*/*
HTTP_ACCEPT_ENCODINGgzip, br, zstd, deflate
HTTP_COOKIEPHPSESSID=2gp4jajev3kpa7oliakcvnlj36
HTTP_HOSTwww.storefitting.com
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_HTTPS1
REMOTE_ADDR216.73.217.20
REMOTE_PORT24659
SERVER_ADDR192.250.229.144
SERVER_NAMEwww.storefitting.com
SERVER_ADMINgod@storefitting.com
SERVER_PORT443
REQUEST_SCHEMEhttps
REQUEST_URI/de/ref/becycle-141
REDIRECT_URL/public/de/ref/becycle-141
REDIRECT_REQUEST_METHODGET
HTTPSon
REDIRECT_STATUS200
X_SPDYHTTP2
SSL_PROTOCOLTLSv1.3
SSL_CIPHERTLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE256
SSL_CIPHER_ALGKEYSIZE256
SCRIPT_FILENAME/home/storefi1/public_html/public/index.php
QUERY_STRING_url=/de/ref/becycle-141
SCRIPT_URIhttps://www.storefitting.com/de/ref/becycle-141
SCRIPT_URL/de/ref/becycle-141
SCRIPT_NAME/public/index.php
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWARELiteSpeed
REQUEST_METHODGET
X-LSCACHEon
PHP_SELF/public/index.php
REQUEST_TIME_FLOAT1781831934.6523
REQUEST_TIME1781831934
#Path
0/home/storefi1/public_html/public/index.php
1/home/storefi1/public_html/app/_config/config.php
2/home/storefi1/public_html/app/_config/loader.php
3/home/storefi1/public_html/app/_config/services.php
4/home/storefi1/public_html/app/_config/routes.php
5/home/storefi1/public_html/app/frontend/Module.php
6/home/storefi1/public_html/app/_library/NotFoundPlugin.php
7/home/storefi1/public_html/app/frontend/controllers/ReferencesController.php
8/home/storefi1/public_html/app/frontend/controllers/BaseController.php
9/home/storefi1/public_html/app/_translations/de.php
10/home/storefi1/public_html/app/_library/CacheSqlQuery.php
11/home/storefi1/public_html/app/backend/models/Jobs.php
12/home/storefi1/public_html/app/backend/models/JobTranslations.php
13/home/storefi1/public_html/app/backend/models/News.php
14/home/storefi1/public_html/app/backend/models/NewsTranslations.php
15/home/storefi1/public_html/app/backend/models/References.php
16/home/storefi1/public_html/app/backend/models/ReferenceTranslations.php
17/home/storefi1/public_html/app/backend/models/ServiceProviders.php
18/home/storefi1/public_html/app/backend/models/ProductCategoryTranslations.php
19/home/storefi1/public_html/app/backend/models/BrandTranslations.php
20/home/storefi1/public_html/app/backend/models/SectionTranslations.php
21/home/storefi1/public_html/app/backend/models/Services.php
22/home/storefi1/public_html/app/backend/models/ServiceTranslations.php
23/home/storefi1/public_html/app/backend/models/ReferenceServices.php
24/home/storefi1/public_html/app/backend/models/SpecialisationTranslations.php
25/home/storefi1/public_html/app/_library/MetaTags.php
26/home/storefi1/public_html/app/_library/Breadcrumbs.php
27/home/storefi1/public_html/app/frontend/views/references/index.phtml
28/home/storefi1/public_html/app/backend/models/Brands.php
Memory
Usage2621440
1