See file /home/via2000/domains/via2000.sr/protected/controller/RssController.php


+ Error on line 72

                iconv("ASCII""UTF-8//IGNORE"htmlspecialchars(str_replace('€''€'$advertisement['description']).$add_text)), 

<?php

Doo
::loadController('BaseController'); // Loading class!

class RssController extends BaseController
{
    
/**
     * Weergeven RSS
     */
    
public function index()
    {
        
        
$results         75;
        
$title             'Via2000 RSS';
        
$link             'http://www.via2000.sr/';
        
$description     'Advertentiesite Suriname Marktplaats';
        
$language         'nl-nl';           
        
        
# Resultaten ophalen
        
Doo::loadClass('helpers/hAd');
        
$haa = new class_helpers_Ad();
        
        
$all_rss '';
        
/*
        $data = Doo::db()->fetchAll("
                    
            (SELECT ad_id, slug AS krant_web, slug, title, description, photos, is_paper, acreated 
            FROM ad
            WHERE is_active = 1 AND astatus = 1 AND is_removed = 0)
            UNION
            (SELECT ad_id, ad_id AS krant_web, slug, title, description, photos, is_paper, acreated 
            FROM krant_ad
            WHERE is_active = 1 AND is_removed = 0)
            ORDER BY acreated DESC
            LIMIT 0,".$results."
        
        ");
*/    

$query sprintf("SELECT ad_id, slug AS krant_web, slug, title, description, photos, is_paper, acreated 
                                     FROM ad
                                     WHERE is_active = 1
                                     AND astatus = 1
                                     AND is_removed = 0
                                     AND acreated >= (NOW() - INTERVAL 2 MONTH)
                                     ORDER BY acreated DESC
                                     LIMIT 0,%d"
$results);    
        
        
$data Doo::db()->fetchAll($query);            
    
                
        
$first_item_time '';
        
        foreach (
$data as $advertisement) {
            
            if (
$first_item_time == '') {
                
$first_item_time gmdate(DATE_RSSstrtotime($advertisement['acreated']));
            }
            
            
$add_text ' - Via2000.sr'
            
$link_pre 'ad/';
            
            if (
is_numeric($advertisement['krant_web'])) {
                
$add_text ' - Via2000 krant';
                
$link_pre 'p/krant/ad/';
            }            
                        
            
$rss_item $this->_makeRssItem(
                
iconv("ASCII""UTF-8//IGNORE"htmlspecialchars($advertisement['title'])), 
                
$link.$link_pre.$advertisement['ad_id'].'/'.$advertisement['slug'], 
                iconv("ASCII""UTF-8//IGNORE"htmlspecialchars(str_replace('€''&#x20AC;'$advertisement['description']).$add_text)), 

                
gmdate(DATE_RSSstrtotime($advertisement['acreated'])),
                
$advertisement['ad_id'],
                
unserialize($advertisement['photos'])
            );
            
$all_rss $all_rss.$rss_item
            
        }

        
        
$all_rss .= '</channel></rss>';
        
        
$print_rss '<?xml version="1.0" encoding="utf-8" ?><rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>'
.$title.'</title><link>'.$link.'</link><description>'.$description.'</description><lastBuildDate>'.$first_item_time.'</lastBuildDate><atom:link href="'$link .'rss" rel="self"></atom:link><language>'.$language.'</language>'.$all_rss;
                
        
$this->setContentType('xml');
        echo 
$print_rss;
        
    }

   
    protected function 
_makeRssItem($title$link$description$date$guid$photos)
    {
            
        
$photo '';
                        
        if (
$photos != false) {
            
$photo '<enclosure url="http://www.via2000.sr/uploads/ads/'.$guid.'/'.str_replace('.jpg''_200x125.jpg'$photos[0]['file']).'" length="0" type="image/jpeg"></enclosure>';
        }
        
        
$item '<item><title>'$title .'</title><link>'$link .'</link><description>'$description .'</description><pubDate>'$date .'</pubDate><guid isPermaLink="false">Article '.$guid.'</guid>'.$photo.'</item>';
        
        return 
$item;
        
    }
    
}


* Stack Trace...

  1. /home/via2000/domains/via2000.sr/public_html/index.php(37) calling run()
  2. /home/via2000/domains/via2000.sr/library/dooframework/app/DooWebApp.php(34) calling routeTo()
  3. /home/via2000/domains/via2000.sr/library/dooframework/app/DooWebApp.php(114) calling index()
  4. /home/via2000/domains/via2000.sr/protected/controller/RssController.php(72) calling iconv()


* Variables...  Conf .  GET  .  POST  .  Session  .  Cookie 


object(DooConfig)#1 (51) {
  
["AUTOLOAD"] => NULL
  
["SITE_PATH"] => string(33"/home/via2000/domains/via2000.sr/"
  
["PROTECTED_FOLDER"] => string(10"protected/"
  
["BASE_PATH"] => string(54"/home/via2000/domains/via2000.sr/library/dooframework/"
  
["LOG_PATH"] => NULL
  
["APP_URL"] => string(22"http://www.via2000.sr/"
  
["SUBFOLDER"] => string(1"/"
  
["APP_MODE"] => string(4"prod"
  
["AUTOROUTE"] => bool(false)
  [
"DEBUG_ENABLED"] => bool(false)
  [
"ERROR_404_DOCUMENT"] => NULL
  
["ERROR_404_ROUTE"] => string(10"/error/404"
  
["CACHE_PATH"] => NULL
  
["AUTO_VIEW_RENDER_PATH"] => string(4"/rss"
  
["MEMCACHE"] => NULL
  
["TEMPLATE_ENGINE"] => string(7"DooView"
  
["TEMPLATE_SHOW_COMMENT"] => NULL
  
["TEMPLATE_ALLOW_PHP"] => NULL
  
["TEMPLATE_COMPILE_ALWAYS"] => NULL
  
["TEMPLATE_GLOBAL_TAGS"] => NULL
  
["MODULES"] => NULL
  
["APP_NAMESPACE_ID"] => NULL
  
["IS_KRANT_SERV"] => bool(false)
  [
"DEV_IPS"] => array(4) {
    [
0] =>   string(13"84.194.65.233"
    
[1] =>   string(14"195.241.126.86"
    
[2] =>   string(12"78.27.11.184"
    
[3] =>   string(13"83.80.162.240"
  
}
  [
"BATCHJOB_IPS"] => array(0) {
  }
  [
"PUBLIC_PATH"] => string(45"/home/via2000/domains/via2000.sr/public_html/"
  
["STORE_PATH"] => string(53"/home/via2000/domains/via2000.sr/public_html/uploads/"
  
["SECURITY_SALT"] => string(64"!X<KyZtZt!{nHbO9v[:J#l}{!K1zaq+(T9\9Ls(rm~}*/6E(]olf[)dsdN~hVO{H"
  
["REMEMBER_SALT"] => string(65"|;w@sEC_dssdGe)zBzee*i&iRmVO9o]gt>L.9dsdss{O$("w%7{g~c4}xN@W4]AIW"
  ["
RECAPTCHA_PUBLIC_KEY"] => string(40) "6LdndMYSAAAAADucvihlcyw56e-qCW-7icy50D9K"
  ["
RECAPTCHA_PRIVATE_KEY"] => string(40) "6LdndMYSAAAAAGiqZwW4qItmjYq1ez5j0azc2daw"
  ["
NAME_SALT_COOKIE"] => string(4) "salt"
  ["
WEBSITE_NAME"] => string(10) "Via2000.sr"
  ["
APP_NAME"] => string(4) "date"
  ["
EMAIL_FROM"] => string(15) "info@via2000.sr"
  ["
EMAIL_FROM_NAME"] => string(10) "Via2000.sr"
  ["
EMAIL_TO"] => string(15) "info@via2000.sr"
  ["
EMAIL_TO_NAME"] => string(10) "Via2000.sr"
  ["
MANUAL_ACITVATE_ACCOUNTS"] => bool(true)
  ["
MOLLIE_PARTNER_ID"] => string(4) "2705"
  ["
MOLLIE_PROFILE_KEY"] => string(8) "87a5784f"
  ["
USERLIST_PER_PAGE"] => int(8)
  ["
DATES_PER_PAGE"] => int(24)
  ["
PHOTO_MUST_BE_APPROVED"] => bool(false)
  ["
MEMBERS_GROUP"] => string(7) "members"
  ["
PREMIUM_GROUP"] => string(7) "premium"
  ["
AD_EXPIRES_TIME"] => int(28)
  ["
ALLOWED_RIMAGE_SIZES"] => array(3) {
    [0] =>   array(2) {
      ["
width"] =>     int(80)
      ["
height"] =>     int(50)
    }
    [1] =>   array(2) {
      ["
width"] =>     int(200)
      ["
height"] =>     int(125)
    }
    [2] =>   array(2) {
      ["
width"] =>     int(700)
      ["
height"] =>     int(450)
    }
  }
  ["
CURRENCY"] => array(3) {
    ["
EUR"] =>   array(2) {
      ["
SRD"] =>     float(4.46)
      ["
USD"] =>     float(1.34)
    }
    ["
SRD"] =>   array(2) {
      ["
EUR"] =>     float(0.22)
      ["
USD"] =>     float(0.3)
    }
    ["
USD"] =>   array(2) {
      ["
EUR"] =>     float(0.74)
      ["
SRD"] =>     float(3.3)
    }
  }
  ["
PRICES"] => array(3) {
    ["
ideal"] =>   array(3) {
      [5] =>     array(2) {
        ["
price"] =>       int(500)
        ["
valid"] =>       int(31556926)
      }
      [10] =>     array(2) {
        ["
price"] =>       int(1000)
        ["
valid"] =>       int(31556926)
      }
      [20] =>     array(2) {
        ["
price"] =>       int(2000)
        ["
valid"] =>       int(31556926)
      }
    }
    ["
visa"] =>   array(3) {
      [5] =>     array(2) {
        ["
price"] =>       int(550)
        ["
valid"] =>       int(31556926)
      }
      [10] =>     array(2) {
        ["
price"] =>       int(1100)
        ["
valid"] =>       int(31556926)
      }
      [20] =>     array(2) {
        ["
price"] =>       int(2200)
        ["
valid"] =>       int(31556926)
      }
    }
    ["
sms"] =>   array(2) {
      ["
credits"] =>     int(1)
      ["
valid"] =>     int(31556926)
    }
  }
  ["
API_ACCESS"] => array(1) {
    ["
ideal"] =>   array(62) {
      [0] =>     string(12) "
82.94.203.80"
      [1] =>     string(12) "
82.94.203.81"
      [2] =>     string(12) "
82.94.203.82"
      [3] =>     string(12) "
82.94.203.83"
      [4] =>     string(12) "
82.94.203.84"
      [5] =>     string(12) "
82.94.203.85"
      [6] =>     string(12) "
82.94.203.86"
      [7] =>     string(13) "
77.245.85.254"
      [8] =>     string(13) "
77.245.85.229"
      [9] =>     string(13) "
77.245.85.230"
      [10] =>     string(13) "
77.245.85.231"
      [11] =>     string(13) "
77.245.85.248"
      [12] =>     string(11) "
11.128.64.0"
      [13] =>     string(11) "
11.128.64.1"
      [14] =>     string(11) "
11.128.64.2"
      [15] =>     string(11) "
11.128.64.3"
      [16] =>     string(11) "
11.128.64.4"
      [17] =>     string(11) "
11.128.64.5"
      [18] =>     string(11) "
11.128.64.6"
      [19] =>     string(11) "
11.128.64.7"
      [20] =>     string(11) "
11.128.64.8"
      [21] =>     string(11) "
11.128.64.9"
      [22] =>     string(12) "
11.128.64.10"
      [23] =>     string(12) "
11.128.64.11"
      [24] =>     string(12) "
11.128.64.12"
      [25] =>     string(12) "
11.128.64.13"
      [26] =>     string(12) "
11.128.64.14"
      [27] =>     string(12) "
11.128.64.15"
      [28] =>     string(12) "
11.128.64.16"
      [29] =>     string(12) "
11.128.64.17"
      [30] =>     string(12) "
11.128.64.18"
      [31] =>     string(12) "
11.128.64.19"
      [32] =>     string(12) "
11.128.64.20"
      [33] =>     string(12) "
11.128.64.21"
      [34] =>     string(12) "
11.128.64.22"
      [35] =>     string(12) "
11.128.64.23"
      [36] =>     string(12) "
11.128.64.24"
      [37] =>     string(11) "
11.129.64.0"
      [38] =>     string(11) "
11.129.64.1"
      [39] =>     string(11) "
11.129.64.2"
      [40] =>     string(11) "
11.129.64.3"
      [41] =>     string(11) "
11.129.64.4"
      [42] =>     string(11) "
11.129.64.5"
      [43] =>     string(11) "
11.129.64.6"
      [44] =>     string(11) "
11.129.64.7"
      [45] =>     string(11) "
11.129.64.8"
      [46] =>     string(11) "
11.129.64.9"
      [47] =>     string(12) "
11.129.64.10"
      [48] =>     string(12) "
11.129.64.11"
      [49] =>     string(12) "
11.129.64.12"
      [50] =>     string(12) "
11.129.64.13"
      [51] =>     string(12) "
11.129.64.14"
      [52] =>     string(12) "
11.129.64.15"
      [53] =>     string(12) "
11.129.64.16"
      [54] =>     string(12) "
11.129.64.17"
      [55] =>     string(12) "
11.129.64.18"
      [56] =>     string(12) "
11.129.64.19"
      [57] =>     string(12) "
11.129.64.20"
      [58] =>     string(12) "
11.129.64.21"
      [59] =>     string(12) "
11.129.64.22"
      [60] =>     string(12) "
11.129.64.23"
      [61] =>     string(12) "
11.129.64.24"
    }
  }
}
$_SESSION Variables array(2) {
  [
"date"] => array(2) {
    [
"session_id"] =>   string(26"gk8ri0t19jol5224j3l2jdl227"
    
["AuthData"] =>   array(10) {
      [
"_username"] =>     string(7"unknown"
      
["_group"] =>     string(9"anonymous"
      
["_securityLevel"] =>     int(1)
      [
"_time"] =>     int(1534409363)
      [
"_initialized"] =>     bool(true)
      [
"_fingerprint"] =>     string(32"85266c2e738fa0e6dfaefb62b2638467"
      
["_id"] =>     string(32"e47ac95409e55ff216ad4ce2d4566007"
      
["_authSessionExpire"] =>     int(900)
      [
"_authPostWait"] =>     int(660)
      [
"_authPostExpire"] =>     int(20)
    }
  }
  [
"FlashMessenger"] => array(1) {
    [
"default"] =>   array(2) {
      [
"__counter"] =>     int(0)
      [
"__after"] =>     int(2)
    }
  }
}
$_COOKIE Variables array(0) {
}

BACK TO TOP