Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter benoitf92

    (@benoitf92)

    Hi,

    I have done a full new install of wordpress n my raspberry pi server.
    Next I have replace the content of WWW folder by my content from my local wampserver wwwfolder
    The default wordpress is always working.
    When I upload my database from wampserver to my phpmyaddmin on my raspeberry pi server and modified my wp-config.php to access to this new database my wordpress is white only white.

    I have used this to set up the server:
    https://raspbian-france.fr/installer-serveur-web-raspberry/
    https://raspbian-france.fr/mettre-en-ligne-serveur-web-raspbian-dydns-port-forwarding/

    I got the same problem.

    The default wordpress is working on both wampserver and raspberry pi but my website only on wampserver

    I use following plugin:

      backwpup
      black-studio-tinymce-widget
      contact-form-7
      contact-form-7-simple-recaptcha
      google-analytics-dashboard-for-wp
      jetpack
      simple-login-log
      tinymce-advanced
      widget-visibility-time-scheduler
      wp-mail-smtp
      wps-hide-login
      wp-super-cache (present but inactive)

    I have no error on php or apache2 log.

    I do not understand what happened. I think about importing posts manually if possible

    Do you have any idea to solve that ?

    I think it come from database format or database settings

    • This reply was modified 8 years, 3 months ago by benoitf92.
    Thread Starter benoitf92

    (@benoitf92)

    Thanks, I have already tried this first.

    I will try it this week end. I hope this time it will work fine.

    Thread Starter benoitf92

    (@benoitf92)

    OK
    I have tried to use this procedure by trasferring data and database, but I got white screen. Before creating this post. I have tried this.

    Now I have a wordpress running without my data. I will retry to use my full database with data.

    Thread Starter benoitf92

    (@benoitf92)

    Hi,

    I have read all error messages, I have got only access 43 error. I have update right but wordpress is not working.

    Today I have done a new fresh install on my server. I have installed all plugins and themes. It is fine .
    I have only one problem. I’m migrating from wampserver to a real raspberry pi server but, the import function in tools-> import propose me only importation of content trhough ftp. How can I give it the WordPress extended file export from my local install ?

    or how can I add it all my content and settings ?
    I have worked on wamp to due the amount of content that I have to create 200 pots, 700 custom poss and 15 pages

    I think the use come from data format as utf8 or utf8mb4 on mysql.

    It’s the only reason that shoumd create this type of problem. I have find no error on apache on php to explain the prolem. On my wampserver, I have done all update and it is always working fine. I do not find other differencies.

    • This reply was modified 8 years, 3 months ago by benoitf92.
    Thread Starter benoitf92

    (@benoitf92)

    Hi

    I have try a new install of wordpress. It is working.

    I have done exactly the same with my website but not with same settings.

    I do not understand why, I use wamp server for apache and phpmyadmin without any tunng.

    I have spent a lot of time to create all the content of the website, How can I export it if I can not migrate the full site ?

    For theme and plugin, I could try to install theme one by one
    but for settings and content I do not know how.

    Thread Starter benoitf92

    (@benoitf92)

    I’m running the full jessie distrib with IHM

    I do not if some module for apache are missing or what happenned
    full html and phpinfo() function are working not wordpress

    Thread Starter benoitf92

    (@benoitf92)

    If I put this to true, I got no output only white on my page

    Forum: Hacks
    In reply to: Custom post template page
    Thread Starter benoitf92

    (@benoitf92)

    Hi

    Yes I have a warning

    I solve it by
    wp_dropdown_categories('taxonomy=Types& hide_if_empty=0&orderby=name&name=Types&show_option_none=Selectionnez un type&selected=0');

    No warning from GET or POST methods.

    The last warning is

    Notice: Constant EMPTY_TRASH_DAYS already defined in C:\wamp\www\mysite.com\wp-config.php on line 94

    Forum: Hacks
    In reply to: Custom post template page
    Thread Starter benoitf92

    (@benoitf92)

    I use
    if('POST' == $_SERVER['REQUEST_METHOD'])
    to detect if I have some value in other situation I do nothing

    If yes I have some if else condition to check which filter I have. I pass to the WP_Query only valid condition. I delete wrong parameters.

    Thread Starter benoitf92

    (@benoitf92)

    Hi

    I solve it

    I have replace the wrong url inside by

    echo paginate_links(array(
    'base'     => get_permalink() .'%#%',
    'format'   => $format,
    'current'  => $paged,
    'total'    => $total,
    'end_size' => 2,
    'mid_size' => 4,
    'add_args' => true
    ));
    Forum: Hacks
    In reply to: Custom post template page
    Thread Starter benoitf92

    (@benoitf92)

    Hi,
    thank you for your help.
    With array of arrays it is fine.

    I include 3 taxonomies in my form, I use differents $_POST['Types'] != -1 to add or not them into the query.

    Forum: Hacks
    In reply to: Custom post template page
    Thread Starter benoitf92

    (@benoitf92)

    Hi,

    I’m woking on pasing parameters to the Query.
    Yesterday, I got some results like:

    	<form method="post" id="searchform" action="<?php the_permalink(); ?>"> 
    		<?php $type_IDs = wp_get_object_terms( $post->ID, 'Types', array('fields' => 'ids') );
    		if ('GET' == $_SERVER['REQUEST_METHOD']){
    			wp_dropdown_categories('taxonomy=Types&hide_empty=0&orderby=name&name=Types&show_option_none=Selectionnez un type&selected='.$type_IDs[0]); }
    		else{
    			wp_dropdown_categories('taxonomy=Types&hide_empty=0&orderby=name&name=Types&show_option_none=Selectionnez un type&selected='.$_POST['Types']);
    		}?>
    		</br>
    		<span class="input-group-btn2">
    			<button class="btn2 btn-search2" type="submit">Rechercher <i class="fa fa-search"></i></button>
    		</span>
    	</form> 
    	<?php
    	$paged = ( get_query_var('page') ) ? get_query_var('page') : 1;
    
    	if ('POST' == $_SERVER['REQUEST_METHOD']) {
    		echo "Types : ".$_POST['Types']."</br>\n";
    		if($_POST['Types'] != -1)
    		{
    			$query_args = array(
    			'post_type' => 'mycustompost',
    			'tax_query' => array(
    				'taxonomy' => 'Types',
    				'field'    => 'term_id',
    				'terms'    => $_POST['Types'],),
    			'posts_per_page' => 25,
    			'order'    => 'DESC',
    			'paged' => $paged);	
    		} 
    		else 
    		{
    			 $query_args = array(
    				'post_type' => 'mycustompost',
    				'posts_per_page' => 25,
    				'order'    => 'DESC',
    				'paged' => $paged
    			);
    		}
    	}
    	// create a new instance of WP_Query
    	$the_query = new WP_Query( $query_args );
    	?>

    But, now the Query is nether filetring by taxonomy term. I do not understand why.

    EDIT: the echo is working fine and display me the id of the taxonomy term

    • This reply was modified 8 years, 4 months ago by benoitf92.
    Forum: Hacks
    In reply to: Custom post template page
    Thread Starter benoitf92

    (@benoitf92)

    Hi

    Thank you

    I have update wy dropdown code. It is fine now.

    For:
    echo "Types term ID: $_POST['Types']</br>\n";
    I got the tag index not the value, but I use it only for development

    For the query, I’m updating it.
    When I pass

    if($_POST['Types'] != -1)  
    {
    	echo "1";
    	// types
    	$tax_query = array(
    	'taxonomy' => 'Types',
    	'field'    => 'term_id',
    	'terms'    => $_POST['Types'],
    	);
    }
    $query_args = array(
    	'post_type' => 'annales_cg',
    	'tax_query' => $tax_query,
    	'posts_per_page' => 25,
    	'order'    => 'DESC',
    	'paged' => $paged);

    sometimes it is working sometimes not.

    I have one question: in my form do I need
    wp_nonce_field( plugin_basename( __FILE__ ), 'types_noncename' );
    Or how can I use it efficently ?

    • This reply was modified 8 years, 4 months ago by benoitf92.
    Thread Starter benoitf92

    (@benoitf92)

    Hi,

    I have https://mysite.com/mypagetitle/20/5 or similar url

    I do not understand why I have the current page number and the next one in the link. To have a good page I only need the next page number.

    I think, I have one thing wrong:

    $format = '%#%';
    	
    echo paginate_links(array(
    	'base'     => get_pagenum_link(0) . '%#%',
    	'format'   => $format,
    	'current'  => $current_page,
    	'total'    => $total,
    	'mid_size' => 5,
    	'add_args' => true
    	));
    Forum: Hacks
    In reply to: Custom post template page
    Thread Starter benoitf92

    (@benoitf92)

    Hi
    Thank to help me for the first part.

    Now I have:

    
    	 <form method="post" id="searchform" action="<?php the_permalink(); ?>"> 
    	 <?php if ('GET' == $_SERVER['REQUEST_METHOD']) {}
        else {
    		echo $_POST[Types].'</br>';
    	}
    	?>
    		<h5>Sélectionnez un type de document:</h5>
    		<?php wp_nonce_field( plugin_basename( __FILE__ ), 'types_noncename' );
    		$type_IDs = wp_get_object_terms( $post->ID, 'Types', array('fields' => 'ids') );
    		if ('GET' == $_SERVER['REQUEST_METHOD']){
    			wp_dropdown_categories('taxonomy=Types&hide_empty=0&orderby=name&name=Types&show_option_none=Selectionnez un type&selected='.$type_IDs[0]); }
    		else{
    			wp_dropdown_categories('taxonomy=Types&hide_empty=0&orderby=name&name=Types&show_option_none=Selectionnez un type&selected='.$type_IDs[0]);
    		}?>
    		<span class="input-group-btn2">
    			<button class="btn2 btn-search2" type="submit">Rechercher <i class="fa fa-search"></i></button>
    		</span>
    	</form> 

    I’m trying to always disply my filter combbox and the result, to have the ability to adjust filter at all time.

    How to memorized the selected value into the dropdown ?

    I only get id but string.
    I’m looking for 3 things
    1) memorized selected items into the comboobox
    2) display value in the page
    3) passing it into the WP_query

Viewing 15 replies - 1 through 15 (of 21 total)