Miflon
Forum Replies Created
-
Hi mbrsolution.
I tried to remove .htaccess from the server. I do not have the rights for this action.
So, I know the reason of this issue. I’m in contact with 1&1 to switch from safe mode to default mode. I therefore mark this topic resolved.@mbrsolution
I can’t change the file permissions by myself. I spoke to my host (1&1). He can not or will not change owner/group of htaccess. No solution that way.
I wonder if I can create a file with notepad++, move that file to the root of my site, erase the old htaccess and rename the new one. Is it possible safely?
Thank you for your help.@mbrsolution : thanks for your fast reply.
I checked folder permissions. All is OK. But i noticed that owner and group in permissions of htaccess are both 0. For example permissions on wp-config.php are :
-rw-r–r– 43 600
I notice also there is no # BEGIN All In One WP Security section in htaccess!
Who can change owner and group on htaccess me or the provider?
Thank you for your interest in my problem.- This reply was modified 8 years, 8 months ago by Miflon.
Forum: Hacks
In reply to: link to another page of the domainAt the beginning I just wanted to jump to my home page. I consider that file as resolved. Thank’s for all @tsure.
Miflon.Forum: Hacks
In reply to: link to another page of the domainHi @tsure.
The javascript code works fine. The jump to the home page does the same issue with my other templates! It’s not a critical error but I would like to understand
I bring to you the template code for seeking what’s going wrong:<?php /** Template Name: Modifier licence, sans sidebar */ get_header(); ?> <div id="main-fullwidth"> <?php $theme->hook("main_before"); $theme->hook("content_before"); global $wpdb; $id_membre= (integer) $_GET['ID']; $membre = $wpdb->get_row( "SELECT * FROM {$wpdb->prefix}t_e_membres_mbr WHERE mbr_id = $id_membre;" ); $sql = "SELECT l.lcc_numero, f.fdt_code, f.fdt_id "; $sql = $sql . "FROM {$wpdb->prefix}t_j_licences_lcc l "; $sql = $sql . "INNER JOIN {$wpdb->prefix}t_r_federations_fdt f "; $sql = $sql . "ON l.fdt_id = f.fdt_id "; $sql = $sql . "WHERE l.mbr_id = $id_membre;"; $licences = $wpdb->get_results( $sql ); $n = 1; $nom_table_licences = $wpdb->prefix . 't_j_licences_lcc'; ?> <div class="texte" style="margin-bottom:15px;"> <h3>Modifier la ou les licence(s) de <?php echo $membre->mbr_prenom . " " . $membre->mbr_nom . " :" ?></h3> </div> <form id="form" method="POST" class="wpcf7-form" > <table style="width:50%;"> <tr> <th style="text-align:right;">Fédération</th> <th style="text-align:left;">Licence n°</th> </tr> <?php foreach( $licences as $licence ) { ?> <tr> <td style="text-align:right;font-weight:bold;"><h5><?php echo $licence->fdt_code . " : " ?></h5></td> <td style="text-align:left;"><input id="numero" class="licence" name="numero<?php echo $n ?>" type="text" size="10" maxlength="10" value = "<?php echo $licence->lcc_numero ?>"></td> </tr> <?php $n++; } ?> <tr> <th></th> <th style="text-align:left;"><input type="submit" value="Modifier" id="modifier" class="licence" name="modifier" style="cursor:pointer;font-weight:bold;font-size:100%;"></th> </tr> </table> </form> <?php if ( isset( $_POST['modifier'] ) ) { $n = 1; foreach( $licences as $licence ) { $lccid = (integer) $wpdb->get_var( "SELECT lcc_id FROM $nom_table_licences WHERE mbr_id = $id_membre AND fdt_id = $licence->fdt_id;"); $wpdb->update( $nom_table_licences, array( 'lcc_numero' => (integer) $_POST['numero' . $n] ), array( 'lcc_id' => $lccid ), array( '%s' ), array( '%d' ) ); $n++; }; echo '<script type="text/javascript">window.location.href = "localhost:82/wordpress/adherents/" </script>'; } ?> </div><!-- #main-fullwidth --> <?php get_footer(); ?>The issue is undoubtedly in that code but I am not able to find where.
You are talking of a debugger. I don’t know what you mean exactly. I tested every data queried from the database and stored in the database once update is done. Is that enough? The site is actually in line and the same issue happens.
Thank you for your interest in my problem, Miflon.Forum: Hacks
In reply to: link to another page of the domainI modify my code as below:
<?php if ( isset( $_POST['modifier'] ) ) { // Here data update <strong>echo '<script type="text/javascript">window.location.href = "http://myhomepage/adherents/";</script>';</strong> } ?> </div><!-- #main-fullwidth --> <?php get_footer(); ?>This works but the page reloads itself with the initial values (before updating) and then jumps to the homepage. I query the database, the correct values are stored!
Can I avoid the display of the page before reaching the homepage?
Thanks for your replies.Forum: Hacks
In reply to: link to another page of the domain@tanveer Sure, thanks for your reply.
I take wp_redirect or wp__safe_redirect out of the code I submit. I did’nt forget to call “exit” after wp_redirect or wp__safe_redirect.
Data processing ends successfully. I checked the result from the database.
I get no error. The page reloads itself.
I don’t know every thing about wordpress and I am wondering if there is a function, a hook or a plugin achieving that goal.
I’ll take a look to the link you offer.
Thanks again for your reply.Forum: Hacks
In reply to: Unexpected display caracterFile encoding was wrong. It must be UTF-8 (without BOM)
Michel.