• 27-10-2015, 23:10:34
    #1
    Parse error: syntax error, unexpected 'if' (T_IF) in "include/helpers/notification-helper.php on line 1

    arkdaşlar bu hatayı veriyor yüklemeye çalışıyorum wordpress temayı çözemedim

    o php sayfasına ait kodlarda bu
    <?php
    /**
    * @Start notification helper class
    * @return
    */
    
    if( !class_exists( 'CS_Notification_Helper' ) ) {
    	class CS_Notification_Helper{
    		
    		public $message;
    		
    		public function __construct() {
    			// Do Something here..
    		}
    		
    		public function success( $message = 'No recored found' ) {
    			global $post;
    			
    			$output	 = '';
    			$output	.= '<div class="col-md-12 cs-succ_mess"><p>';
    			$output	.= $message;
    			$output	.= '</p></div>';
    			
    			echo force_balance_tags ( $output ); 		
    		}
    		
    		public function error( $message='No recored found' ) {
    			global $post;
    		   
    		   $output	 = '';
    		   $output	.= '<div class="col-md-12 cs-error"><p>';
    		   $output	.= $message;
    		   $output	.= '</p></div>';
    		  
    		   echo force_balance_tags ( $output ); 	
    		
    		}
    	  
    		public function warning( $message='No recored found' ) {
    		  global $post;	
    			
    		  $output	 = '';
    		  $output	.= '<div class="col-md-12 cs-warning"><p>';
    		  $output	.= $message;
    		  $output	.= '</p></div>';
    		 
    		 echo force_balance_tags ( $output ); 
    		}
    		
    		public function informations($message='No recored found') { 
    		  global $post;
    		 
    		  $output	 = '';
    		  $output	.= '<div class="col-md-12 cs-informations"><p>';
    		  $output	.= $message;
    		  $output	.= '</p></div>';
    		 
    		 echo force_balance_tags ( $output ); 
    		
    		}
    	}
    }
    
    $cs_notification = new CS_Notification_Helper();
    global $cs_notification;
    ?>
  • 27-10-2015, 23:42:28
    #2
    Merhaba,
    muhtemelen php versiyonunuzdan kaynaklanıyor.
    ilk satırda şunun yerine
    if( !class_exists( 'CS_Notification_Helper' ) ) {
    şunu
    if( !interface_exists( 'CS_Notification_Helper' ) ) {

    kullanarak dener misiniz?
    Hata alırsanız hatayı tekrar paylaşırsanız yardımcı olmaya çalışırız.

    Kolaylıklar


    KaRa_MaSkE adlı üyeden alıntı: mesajı görüntüle
    Parse error: syntax error, unexpected 'if' (T_IF) in "include/helpers/notification-helper.php on line 1

    arkdaşlar bu hatayı veriyor yüklemeye çalışıyorum wordpress temayı çözemedim

    o php sayfasına ait kodlarda bu
    <?php
    /**
    * @Start notification helper class
    * @return
    */
    
    if( !class_exists( 'CS_Notification_Helper' ) ) {
    	class CS_Notification_Helper{
    		
    		public $message;
    		
    		public function __construct() {
    			// Do Something here..
    		}
    		
    		public function success( $message = 'No recored found' ) {
    			global $post;
    			
    			$output	 = '';
    			$output	.= '<div class="col-md-12 cs-succ_mess"><p>';
    			$output	.= $message;
    			$output	.= '</p></div>';
    			
    			echo force_balance_tags ( $output ); 		
    		}
    		
    		public function error( $message='No recored found' ) {
    			global $post;
    		   
    		   $output	 = '';
    		   $output	.= '<div class="col-md-12 cs-error"><p>';
    		   $output	.= $message;
    		   $output	.= '</p></div>';
    		  
    		   echo force_balance_tags ( $output ); 	
    		
    		}
    	  
    		public function warning( $message='No recored found' ) {
    		  global $post;	
    			
    		  $output	 = '';
    		  $output	.= '<div class="col-md-12 cs-warning"><p>';
    		  $output	.= $message;
    		  $output	.= '</p></div>';
    		 
    		 echo force_balance_tags ( $output ); 
    		}
    		
    		public function informations($message='No recored found') { 
    		  global $post;
    		 
    		  $output	 = '';
    		  $output	.= '<div class="col-md-12 cs-informations"><p>';
    		  $output	.= $message;
    		  $output	.= '</p></div>';
    		 
    		 echo force_balance_tags ( $output ); 
    		
    		}
    	}
    }
    
    $cs_notification = new CS_Notification_Helper();
    global $cs_notification;
    ?>
  • 27-10-2015, 23:49:04
    #3
    bluexpres adlı üyeden alıntı: mesajı görüntüle
    Merhaba,
    muhtemelen php versiyonunuzdan kaynaklanıyor.
    ilk satırda şunun yerine
    if( !class_exists( 'CS_Notification_Helper' ) ) {
    şunu
    if( !interface_exists( 'CS_Notification_Helper' ) ) {

    kullanarak dener misiniz?
    Hata alırsanız hatayı tekrar paylaşırsanız yardımcı olmaya çalışırız.

    Kolaylıklar
    Fatal error: Call to undefined function phpdefine() in /wp-content/themes/hotel-theme/include/shortcodes/config.php on line 1

    öncelikle teşekkür ederim cevabınız için, şimdide böyle bi hata verdi. ilgili dosyayı aktarıyorum tamamen

    <?php
    define('CS_SC_BUTTON','cs_button');
    define('CS_SC_TABS','cs_tabs');
    define('CS_SC_TABSITEM','tab_item');
    define('CS_SC_TOGGLE','cs_toggle');
    define('CS_SC_MAILCHIMP','cs_mailchimp');
    define('CS_SC_PRICETABLE','cs_pricetable');
    define('CS_SC_PRICETABLEITEM','pricing_item');
    define('CS_SC_ACCORDION','cs_accordian');
    define('CS_SC_ACCORDIONITEM','accordian_item');
    define('CS_SC_CALLTOACTION','call_to_action');
    define('CS_SC_COUNTERS','cs_counter');
    define('CS_SC_PROGRESSBAR','cs_progressbars');
    define('CS_SC_PROGRESSBARITEM','progressbar_item');
    define('CS_SC_PIECHART','cs_piechart');
    define('CS_SC_FAQ','cs_faq');
    define('CS_SC_FAQITEM','faq_item');
    define('CS_SC_TABLES','cs_table');
    define('CS_SC_TABLE','table');
    define('CS_SC_TABLEBODY','tbody');
    define('CS_SC_TABLEHEAD','thead');
    define('CS_SC_TABLEROW','tr');
    define('CS_SC_TABLEHEADING','th');
    define('CS_SC_TABLECOLUMN','td');
    define('CS_SC_SERVICES','cs_services');
    define('CS_SC_CLIENTS','cs_clients');
    define('CS_SC_CLIENTSITEM','clients_item');
    define('CS_SC_TWEETS','cs_tweets');
    define('CS_SC_MULTPLESERVICES','cs_multiple_services');
    define('CS_SC_MULTPLESERVICESITEM','multiple_services_item');
    define('CS_SC_INFOBOX','cs_infobox');
    define('CS_SC_INFOBOXITEM','infobox_item');
    define('CS_SC_ICONS','cs_icons');
    define('CS_SC_TESTIMONIALS','cs_testimonials');
    define('CS_SC_TESTIMONIALSITEM','testimonial_item');
    define('CS_SC_IMAGE','cs_image');
    define('CS_SC_SLIDER','cs_slider');
    define('CS_SC_QUOTE','cs_quote');
    define('CS_SC_PROMOBOX','cs_promobox');
    define('CS_SC_MAP','cs_map');
    define('CS_SC_HEADING','cs_heading');
    define('CS_SC_DIVIDER','cs_divider');
    define('CS_SC_COLUMN','cs_column');
    define('CS_SC_LIST','cs_list');
    define('CS_SC_LISTITEM','list_item');
    define('CS_SC_CONTACTUS','cs_contactus');
    define('CS_SC_SPACER','cs_spacer');
    define('CS_SC_OFFERSLIDER','cs_offerslider');
    define('CS_SC_OFFERITEM','offer_item');
    define('CS_SC_FACILITIES','cs_facilities');
    define('CS_SC_FACILITIESITEM','cs_facilities_item');
    define('CS_SC_TEAM','cs_team');
    
    
    //Translation
    __('Call To Action','Hotel');
    __('Contactus','Hotel');
    __('Faq','Hotel');
    __('Flex Column','Hotel');
    __('Teams','Hotel');
    __('Mail chimp','Hotel');
    __('Price table','Hotel');
    __('Promo box','Hotel');
    __('Prograss bars','Hotel');
  • 28-10-2015, 00:23:48
    #4
    define'ın çalışmaması çok ilginç. hata verecek bir fonksiyon değil.attığınız dosyaya bakılırsa başka bir bağımlılıktan da sorun verdiğini düşünmüyorum. sunucunuzdaki php'de sorun olabilir yeniden build etmek durumunda olabilirsiniz. bunu yapmadan önce bir boş php açarak
    <?php
    define("CONSTANT", "Hello world.");
    echo CONSTANT; // outputs "Hello world."
    echo Constant; // outputs "Constant" and issues a notice.
    
    define("GREETING", "Hello you.", true);
    echo GREETING; // outputs "Hello you."
    echo Greeting; // outputs "Hello you."
    ?>
    şu standart php.net örneğini deneyin. eğer hata alıyorsanız sunucu yöneticinizle görüşün.
    eğer üstteki örneklerde //'dan sonraki çıktıları alıyorsanız temayı yapanlardan destek almanızı tavsiye ederim.

    iyi çalışmalar


    KaRa_MaSkE adlı üyeden alıntı: mesajı görüntüle
    Fatal error: Call to undefined function phpdefine() in /wp-content/themes/hotel-theme/include/shortcodes/config.php on line 1

    öncelikle teşekkür ederim cevabınız için, şimdide böyle bi hata verdi. ilgili dosyayı aktarıyorum tamamen

    <?php
    define('CS_SC_BUTTON','cs_button');
    define('CS_SC_TABS','cs_tabs');
    define('CS_SC_TABSITEM','tab_item');
    define('CS_SC_TOGGLE','cs_toggle');
    define('CS_SC_MAILCHIMP','cs_mailchimp');
    define('CS_SC_PRICETABLE','cs_pricetable');
    define('CS_SC_PRICETABLEITEM','pricing_item');
    define('CS_SC_ACCORDION','cs_accordian');
    define('CS_SC_ACCORDIONITEM','accordian_item');
    define('CS_SC_CALLTOACTION','call_to_action');
    define('CS_SC_COUNTERS','cs_counter');
    define('CS_SC_PROGRESSBAR','cs_progressbars');
    define('CS_SC_PROGRESSBARITEM','progressbar_item');
    define('CS_SC_PIECHART','cs_piechart');
    define('CS_SC_FAQ','cs_faq');
    define('CS_SC_FAQITEM','faq_item');
    define('CS_SC_TABLES','cs_table');
    define('CS_SC_TABLE','table');
    define('CS_SC_TABLEBODY','tbody');
    define('CS_SC_TABLEHEAD','thead');
    define('CS_SC_TABLEROW','tr');
    define('CS_SC_TABLEHEADING','th');
    define('CS_SC_TABLECOLUMN','td');
    define('CS_SC_SERVICES','cs_services');
    define('CS_SC_CLIENTS','cs_clients');
    define('CS_SC_CLIENTSITEM','clients_item');
    define('CS_SC_TWEETS','cs_tweets');
    define('CS_SC_MULTPLESERVICES','cs_multiple_services');
    define('CS_SC_MULTPLESERVICESITEM','multiple_services_item');
    define('CS_SC_INFOBOX','cs_infobox');
    define('CS_SC_INFOBOXITEM','infobox_item');
    define('CS_SC_ICONS','cs_icons');
    define('CS_SC_TESTIMONIALS','cs_testimonials');
    define('CS_SC_TESTIMONIALSITEM','testimonial_item');
    define('CS_SC_IMAGE','cs_image');
    define('CS_SC_SLIDER','cs_slider');
    define('CS_SC_QUOTE','cs_quote');
    define('CS_SC_PROMOBOX','cs_promobox');
    define('CS_SC_MAP','cs_map');
    define('CS_SC_HEADING','cs_heading');
    define('CS_SC_DIVIDER','cs_divider');
    define('CS_SC_COLUMN','cs_column');
    define('CS_SC_LIST','cs_list');
    define('CS_SC_LISTITEM','list_item');
    define('CS_SC_CONTACTUS','cs_contactus');
    define('CS_SC_SPACER','cs_spacer');
    define('CS_SC_OFFERSLIDER','cs_offerslider');
    define('CS_SC_OFFERITEM','offer_item');
    define('CS_SC_FACILITIES','cs_facilities');
    define('CS_SC_FACILITIESITEM','cs_facilities_item');
    define('CS_SC_TEAM','cs_team');
    
    
    //Translation
    __('Call To Action','Hotel');
    __('Contactus','Hotel');
    __('Faq','Hotel');
    __('Flex Column','Hotel');
    __('Teams','Hotel');
    __('Mail chimp','Hotel');
    __('Price table','Hotel');
    __('Promo box','Hotel');
    __('Prograss bars','Hotel');
  • 28-10-2015, 00:34:25
    #5
    bluexpres adlı üyeden alıntı: mesajı görüntüle
    define'ın çalışmaması çok ilginç. hata verecek bir fonksiyon değil.attığınız dosyaya bakılırsa başka bir bağımlılıktan da sorun verdiğini düşünmüyorum. sunucunuzdaki php'de sorun olabilir yeniden build etmek durumunda olabilirsiniz. bunu yapmadan önce bir boş php açarak
    <?php
    define("CONSTANT", "Hello world.");
    echo CONSTANT; // outputs "Hello world."
    echo Constant; // outputs "Constant" and issues a notice.
    
    define("GREETING", "Hello you.", true);
    echo GREETING; // outputs "Hello you."
    echo Greeting; // outputs "Hello you."
    ?>
    şu standart php.net örneğini deneyin. eğer hata alıyorsanız sunucu yöneticinizle görüşün.
    eğer üstteki örneklerde //'dan sonraki çıktıları alıyorsanız temayı yapanlardan destek almanızı tavsiye ederim.

    iyi çalışmalar

    yazılar sorunsuz çıktı. başka wordprss temaları sorunsuz çalışıyorda bunda problem cıktı, teşekkür ederim yinede
  • 28-10-2015, 00:44:36
    #6
    şimdi farkettim.
    config dosyanızın en üstüne bakın <?php tagı açıldıktan sonra en az 1 tane boşluk enter vs. olmalı.

    sizin ilk satır muhtemelen <?phpdefine bu şekilde, ondan hata alıyorsunuz <?php 'den sonra enter yapın düzelecektir.

    kolaylıklar.




    KaRa_MaSkE adlı üyeden alıntı: mesajı görüntüle
    yazılar sorunsuz çıktı. başka wordprss temaları sorunsuz çalışıyorda bunda problem cıktı, teşekkür ederim yinede
  • 28-10-2015, 00:55:03
    #7
    bluexpres adlı üyeden alıntı: mesajı görüntüle
    şimdi farkettim.
    config dosyanızın en üstüne bakın <?php tagı açıldıktan sonra en az 1 tane boşluk enter vs. olmalı.

    sizin ilk satır muhtemelen <?phpdefine bu şekilde, ondan hata alıyorsunuz <?php 'den sonra enter yapın düzelecektir.

    kolaylıklar.
    aynı problemi veriyor hocam. değişen birşey yok tema sahibine ticket attım bakalım inşallah hızlı dönerler..

    Parse error: syntax error, unexpected 'if' (T_IF) in include/shortcodes/frontend/image-frame.php on line 1