goedemiddag,
Ik heb vanmiddag een site verplaast naar een ander domein (van domein www.qwu.nl naar www.deschrans.nl)
Dit is helemaal geslaagd, site wordt goed weergegeven (database meeverhuisd, hierin de url aangepast.)
Echter loop ik nog tegen een foutmelding aan welke ontstaat bij het wijzigen van de opties van het theme (ar2-d57c18d)
Ik krijg dan deze melding:
Warning: Invalid argument supplied for foreach() in /home/schrans/domains/deschrans.nl/public_html/wp-content/themes/ar2-d57c18d/library/options.php on line 262
Warning: Cannot modify header information - headers already sent by (output started at /home/schrans/domains/deschrans.nl/public_html/wp-content/themes/ar2-d57c18d/library/options.php:262) in /home/schrans/domains/deschrans.nl/public_html/wp-includes/pluggable.php on line 1121
Wijziging wordt vervolgens wel doorgevoerd.
Iemand enig idee waar dit aan kan liggen?
Groet,
Paul
- klein wordpressprobleempje
-
16-08-2014, 15:41 #1
- Berichten
- 711
- Lid sinds
- 17 Jaar
klein wordpressprobleempje
-
-
16-08-2014, 16:16 #2
- Berichten
- 10
- Lid sinds
- 10 Jaar
Re: klein wordpressprobleempje
Beste Paul,Check even alle headers in de wp-inlcudes en in je theme folder. Kan je eventueel een voorbeeld sturen van hoe dit er uit ziet?Gr, Mark
-
16-08-2014, 16:25 #3
- Berichten
- 711
- Lid sinds
- 17 Jaar
Re: klein wordpressprobleempje
alle bestanden daarvan? Heb hier namelijk niets van veranderd, staat op de zelfde server, heb allen 1 op 1 gekopieeerd en alleen de url aangepast.
-
16-08-2014, 16:28 #4
- Berichten
- 10
- Lid sinds
- 10 Jaar
Re: klein wordpressprobleempje
Nee, ik heb het wel eens gehad omdat ik gehacked was. Welke stappen heb je ondernomen tijdens het verhuizen?
-
16-08-2014, 16:32 #5
- Berichten
- 711
- Lid sinds
- 17 Jaar
Re: klein wordpressprobleempje
heb de site op qwu.nl gedownload via ftp, backup gemaakt vanuit phpmyadmin.
Dit alles gekopieerd naar de nieuwe site. Daar leek alles goed te draaien tot ik in de opties van het theme iets wilde wijzigen en deze melding kreeg
-
16-08-2014, 16:34 #6
- Berichten
- 10
- Lid sinds
- 10 Jaar
Re: klein wordpressprobleempje
Het klinkt alsof er toch iets niet goed zit in de theme folder. Kan je even kijken wat je in header.php ziet staan?
-
16-08-2014, 16:35 #7
- Berichten
- 711
- Lid sinds
- 17 Jaar
Re: klein wordpressprobleempje
PHP Code:<?php/** * AR2's main header template. * * @package AR2 * @since 1.0 */?><!DOCTYPE html><html <?php language_attributes() ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" /><meta name="viewport" content="width=device-width" />
<?php if ( is_search() || is_author() ) : ?><meta name="robots" content="noindex, nofollow" /><?php endif ?>
<title><?php ar2_document_title() ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" /><link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>" />
<?phpwp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr.custom.min.js', null, '2012-07-08' );wp_enqueue_script( 'tinynav', get_template_directory_uri() . '/js/tinynav.min.js', array( 'jquery' ), '2012-08-02' );
wp_enqueue_script( 'highlightparentitem', includes_url() . 'js/VC058/jquery.highlight.parent.items.js', array( 'jquery' ), '2013-08-24' );
if ( is_singular() ) :wp_enqueue_style( 'colorbox_css', get_template_directory_uri() . '/css/colorbox.css', null, '2012-08-04' );wp_enqueue_script( 'colorbox', get_template_directory_uri() . '/js/jquery.colorbox.min.js', array( 'jquery' ), '2012-08-04' );endif;
if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );?>
<?php wp_head() ?></head>
<body <?php body_class() ?>><?php ar2_body() ?>
<div id="wrapper">
<nav id="top-menu" class="clearfix" role="navigation"><?php ar2_above_top_menu() ?> <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'menu_class' => 'menu clearfix', 'theme_location' => 'top-menu', 'container' => false, 'fallback_cb' => '' ) ); ?><?php ar2_below_top_menu() ?></nav><!-- #top-menu -->
<header id="header" role="banner"> <div id="branding" class="clearfix"> <?php if ( is_home() || is_front_page() ) : ?> <hgroup class="logo"> <h1 class="blog-name"><a href="<?php echo home_url() ?>"><?php bloginfo('name'); ?></a></h1> <h2 class="blog-description"><?php bloginfo('description'); ?></h2> </hgroup> <?php else: ?> <div class="logo"> <span class="blog-name"><a href="<?php echo home_url() ?>"><?php bloginfo('name'); ?></a></span> <span class="blog-description"><?php bloginfo('description'); ?></span> </div> <?php endif ?> <div class="banner"> <?php /* Place a 728 x 90 leaderboard banner here? */ ?> </div> </div><!-- #branding --></header><!-- #header -->
<?php ar2_above_nav() ?><nav id="main-nav" role="navigation"> <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'menu_class' => 'menu clearfix', 'theme_location'=> 'main-menu', 'container' => false, 'fallback_cb' => 'ar2_nav_fallback_cb' ) ); ?></nav><!-- #nav --><?php ar2_below_nav() ?>
<?php ar2_above_main() ?> <div id="main" class="clearfix"> <div id="container" class="clearfix">
-
16-08-2014, 16:41 #8
- Berichten
- 10
- Lid sinds
- 10 Jaar
Re: klein wordpressprobleempje
En hoe ziet je functions.php eruit? Vanuit je theme folder?
-
16-08-2014, 16:47 #9
- Berichten
- 711
- Lid sinds
- 17 Jaar
Re: klein wordpressprobleempje
Heb zojuist ook nog het originele theme er even op gehad, hier blijft de foutmelding.
PHP Code:<?phpdefine ( 'AR2_CHILD', is_child_theme() );define ( 'AR2_VERSION' , wp_get_theme()->get( 'Version' ) );define ( 'AR2_LIB', get_template_directory() . '/library' );
// Set this to true if you wish to use custom stylesheets.// CSS files have to be placed in /css/styles/ folder.define( 'AR2_ALLOW_CUSTOM_STYLES', false );
do_action( 'ar2_init' );
/** * Theme setup function - to be run during 'after_setup_theme' action hook. * @since 1.6 */add_action( 'after_setup_theme', 'ar2_setup', 10 );
if ( !function_exists('ar2_setup') ) :
function ar2_setup() {
/* Load theme options */ require_once AR2_LIB . '/options.php'; /* Post Views API */ require_once AR2_LIB . '/postviews.php'; /* Load theme library files */ require_once AR2_LIB . '/actions.php'; require_once AR2_LIB . '/filters.php'; require_once AR2_LIB . '/template.php'; require_once AR2_LIB . '/thumbnails.php'; require_once AR2_LIB . '/styles.php'; require_once AR2_LIB . '/widgets.php'; //require_once AR2_LIB . '/shortcodes.php';
require_once AR2_LIB . '/admin/form.php'; require_once AR2_LIB . '/admin/admin.php';
/* Langauge support */ load_theme_textdomain( 'ar2', get_template_directory() . '/language' ); $locale = get_locale(); $locale_file = get_template_directory() . "/languages/$locale.php"; if ( is_readable( $locale_file ) ) require_once( $locale_file ); /* Theme support */ add_theme_support( 'post-thumbnails' ); add_theme_support( 'nav-menus' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'custom-background', array ( 'default-color' => 'F0F0F0', 'wp-head-callback' => 'ar2_custom_bg_header_callback', ) ); add_theme_support( 'custom-header', array ( 'width' => 960, 'height' => 120, 'default-text-color' => '333', 'wp-head-callback' => 'ar2_header_style', 'admin-head-callback' => 'ar2_admin_header_style', 'admin-preview-callback' => 'ar2_admin_header_image', ) ); add_theme_support( 'post-formats', array ( 'gallery', 'image', 'video', 'audio', ) ); /* Menus locations */ register_nav_menus( array ( 'main-menu' => __( 'Main Menu', 'ar2' ), 'top-menu' => __( 'Top Menu', 'ar2' ), 'footer-nav' => __( 'Footer Navigation', 'ar2' ) )); /* Register sidebars */ ar2_add_sidebars(); /* Header actions */ remove_action( 'wp_head', 'pagenavi_css' ); add_action( 'wp_footer', 'ar2_add_header_js', 100 ); // Editor Style add_editor_style();
/* Thumbnail sizes */ ar2_add_theme_thumbnails(); /* Max image size */ $max_image_size = ar2_post_thumbnail_size(); $content_width = $max_image_size[ 0 ]; set_post_thumbnail_size( $max_image_size[ 0 ], $max_image_size[ 1 ] ); // print_r($ar2_options); }
endif;
/** * Sidebar setup function. * @since 1.6 */function ar2_add_sidebars() { /* Default sidebars */ register_sidebar( array( 'name' => __( 'Primary Sidebar', 'ar2' ), 'id' => 'primary-sidebar', 'before_widget' => '<aside id="%1$s" class="widget clearfix">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); register_sidebar( array( 'name' => __( 'Bottom Content #1', 'ar2' ), 'id' => 'bottom-content-1', 'before_widget' => '<aside id="%1$s" class="widget clearfix">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); register_sidebar( array( 'name' => __( 'Bottom Content #2', 'ar2' ), 'id' => 'bottom-content-2', 'before_widget' => '<aside id="%1$s" class="widget clearfix">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); /* Footer sidebars (4 sidebars) */ $footer_sidebars = 4; for( $i = 1; $i < $footer_sidebars + 1; $i++ ) { register_sidebar( array( 'name' => sprintf( __( 'Footer Sidebar #%s', 'ar2' ), $i ), 'id' => 'footer-sidebar-' . $i, 'before_widget' => '<aside id="%1$s" class="widget clearfix">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); } } /* End of file functions.php *//* Location: ./functions.php */
-
16-08-2014, 17:05 #10
- Berichten
- 10
- Lid sinds
- 10 Jaar
Re: klein wordpressprobleempje
Dat is wel vreemd. zou je de gegevens willen doormailen dan kan ik eventueel het voor je proberen op te lossen?
-
16-08-2014, 19:00 #11
- Berichten
- 711
- Lid sinds
- 17 Jaar
Re: klein wordpressprobleempje
Warning: Invalid argument supplied for foreach() in /home/schrans/domains/deschrans.nl/public_html/wp-content/themes/ar2-d57c18d/library/options.php on line 262
line 262 staat dit (options.php): foreach( $single_post_opts as $id => $val )
Warning: Cannot modify header information - headers already sent by (output started at /home/schrans/domains/deschrans.nl/public_html/wp-content/themes/ar2-d57c18d/library/options.php:262) in /home/schrans/domains/deschrans.nl/public_html/wp-includes/pluggable.php on line 1121
line 1121 (pluggable.php) staat dit: header("Location: $location", true, $status);
stukje code options.php.:
PHP Code:/**
* @todo
* @since 2.0
*/
function ar2_theme_options_validate_single_posts_display( $sanitized, $value, $output ) {
$single_post_opts = $output[ 'post_display' ];
foreach( $single_post_opts as $id => $val )
$single_post_opts[ $id ] = ( isset( $value[ $id ] ) && 1 == $value[ $id ] ) ? true : false;
return $single_post_opts;
}
add_filter( 'ar2_theme_options_validate_setting-single_posts_display', 'ar2_theme_options_validate_single_posts_display', 1, 3 );
stukje code pluggable.php:
PHP Code:/** * Filter the redirect status code. * * @since 2.3.0 * * @param int $status Status code to use. * @param string $location The path to redirect to. */ $status = apply_filters( 'wp_redirect_status', $status, $location );
if ( ! $location ) return false;
$location = wp_sanitize_redirect($location);
if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups
header("Location: $location", true, $status);
return true;}endif;
if ( !function_exists('wp_sanitize_redirect') ) :
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic