404 errors after backup buddy migration wordpress

So I’m in charge of migrating a website from its current page to the staging site for testing. I was given backup buddy and told to use this program. Unfortunately I was not given any login credentials and the guy in charge won’t give them to me so I can’t talk to tech support.

So I just migrated the website over and importbuddy tells me there are no errors. but when I click the link for the new site, I get an error message. originally it was a 500 server error. So I went and renamed the .htaccess file as suggested here(http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/) and it did nothing.

So then I went into the phpMyAdmin and deactivated all the plugins. This has now given me an error that says: the requested URL was not found on the server. Additionally a 404 was encountered.

Currently I have no access to the home page or even the admin panel on wordpress. That same page I linked above says it could be an issue with the memory limit but that that is a temporary fix. Obviously I need a permanent one.

query_posts exclude custom field

I have an RSS feed that includes the following loop:

     * Template Name: Custom RSS Template - Template Name
    $postCount = -1; // The number of posts to show in the feed
    $posts = query_posts('post_type=job_listing&showposts=' . $postCount);
    header('Content-Type: '.feed_content_type('rss-http').'; 
    charset='.get_option('blog_charset'), true);
    echo '<?xml version="1.0" 

I have a custom field (called job_rating) and I want to exclude two specific values from that field from showing in the RSS feed, but every time I try to add the exclusion, the feed breaks.

I’ve tried using array, but so far, no luck. ANy suggestions on what I’m missing?

Is it possible to list all spreadsheets from Google Drive that are public?

I have been researching trying to find out if I can display all of the spreadsheets that are public from my Google Drive.

I have found the API to list a single spreadsheet but you can only list it with a spreadsheet ID.

Link: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get

I have also searched google but none of the results have helped.

Basicicly I am trying to list all the spreadsheets In my Google Drive that are public in a HTML5 <select> dropdown, I am trying to do this in PHP using the Google Sheets API.

I have no code, Because I cannot find any API that can list all the spreadsheets, I am only wondering if it can be done, And where the documentation is…..

Any help?

how to send/mail form submitted info to an x email?

Hi how can I send a website form information submitted to an email of my choice?

I am building a website in html and want to have a contact form and send the clients data name phone and email to the company’s email so that the company can reply later. I was trying to use php to do that but can’t seem to get it working…

This is the code I am trying:


<form role="form" class="clearfix" method="post" action="mail.php">
<!--form-group--> </div><!--col-->
<!--form-group--> </div><!--col-->
<!--form-group--> </div><!--col--> </div><!--row--> <input type="submit" class="btn btn-info btn-lg pull-right" value="Get in touch &raquo;"> </form>


<!--form group -->
Phone number
<!--form group -->


if(isset($_POST['email'])) {

    $email_to = "dianamoura13@gmail.com";
    $email_subject = "Your email subject line";

    function died($error) {
        // your error code can go here
        echo "We are very sorry, but there were error(s) found with the form you submitted. ";
        echo "These errors appear below.<br /><br />";
        echo $error."<br /><br />";
        echo "Please go back and fix these errors.<br /><br />";

    // validation expected data exists
    if(!isset($_POST['name']) ||
        !isset($_POST['phone']) ||
        !isset($_POST['comments']) ||
        died('We are sorry, but there appears to be a problem with the form you submitted.');       

    $name = $_POST['name']; // required
    $phone = $_POST['phone']; // required
    $email = $_POST['email']; // required

    $error_message = "";
    $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';

  if(!preg_match($email_exp,$email)) {
    $error_message .= 'The Email Address you entered does not appear to be valid.<br />';

    $string_exp = "/^[A-Za-z .'-]+$/";

  if(!preg_match($string_exp,$name)) {
    $error_message .= 'The First Name you entered does not appear to be valid.<br />';

  if(!preg_match($string_exp,$phone)) {
    $error_message .= 'The Last Name you entered does not appear to be valid.<br />';

    function clean_string($string) {
      $bad = array("content-type","bcc:","to:","cc:","href");
      return str_replace($bad,"",$string);

    $email_message .= "First Name: ".clean_string($name)."\n";

    $email_message .= "Email: ".clean_string($email)."\n";
    $email_message .= "Telephone: ".clean_string($phone)."\n";

// create email headers
$headers = 'From: '.$email."\r\n".
'Reply-To: '.$email."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);  

<!-- include your own success html here -->

 Thank you for contacting us. We will be in touch with you very soon.


Paiement system with react-native

Good evening!
I would like a realized payment service with react-native. My users must subscribe every me to use my sercice but bank cards are not much developer in my country so I use a service of my operators called Orange Money. The sender types in the recipient’s number, fills in his code and the amount sent, and the recipient receives a message telling him to check his account (Orangemoney is not a bank).
The problem is that I do not know how to automate the process when I get money from a particular person I would like it to be registered in the database without me having to wait for the message of reception and do it manually.
I’m afraid there is no solution.
Thank you!

How do I load more JSON items using button?

Currently I have a .getJSON firing on click of a load button. I want the next 10 items in the JSON file to load on each subsequent click. Currently the first 10 items are being appended each time instead of the next items in the array.


var current = 0; 
$(document).ready(function() {
  $("#get-data").click(function(){ //load JSON data...
  current += 9;
    $.getJSON("api.php", //gets a JSON data from api.php
    function(data,status){     //callback function if request succeeds
        $.each(data.records, function(i,record){//The each() method specifies a function to run for each matched element. Essentially, a loop!
            $("<img/>").attr({"src": record.image, "class": "album", "alt": record.artist}).appendTo(".ajax-loader"); //appends data from json file to the element with id of "images"
            if ( i == 9 ) {
              return false;
        data = data.records.slice(current);
     }); //end of callback function and end of .getJSON statement


 {"artist":"At The Drive In","title":"Acrobatic Tenement ","year":"1996","image":"./img/atdi01.jpg","description":"Arguably the the pioneering album of post-hardcore, Acrobatic Tenement is At The Drive In's seminal album. ","ID":"1"},
 {"artist":"At The Drive In","title":"Vaya EP","year":"1999","image":"./img/atdi02.jpg","description":"A near-perfect entry in ATDI's discography, short enough to keep listener's interested and eventually rounded out what would become their pivotal and final album \"Relationship of Command\"","ID":"2"}

Getting an empty AJAX response from PHP login request

I have the following php code, which works on its own. However, when using it AJAX it returns an empty response.

PHP login code:

include_once  'resources/database.php';

if(isset($_POST['m_login_signin_submit'])) {
    $email = trim($_POST['email']);
    $user_password = trim($_POST['password']);

    $password = MD5($user_password);

    try {
        $stmt = $db->prepare("SELECT * FROM users WHERE email=:email");
        $stmt->execute(array(':email' => $email));
        $row = $stmt->fetch(PDO::FETCH_ASSOC);
        $count = $stmt->rowCount();
            if($row['password']==$password) {
                echo '1';
                $_SESSION['user_session'] = $row['id'];
            } else {
                echo 'You do not matter.';
    } catch (PDOException $ex) {
        echo $ex->getMessage();

AJAX Code:

$(document).ready(function () {
/* validation */
    submitHandler: submitForm
function submitForm() {
    var email = $('#email').val();
    var password = $('#password').val();
        type: 'POST',
        dataType: 'text',
        url: 'partials/processLogin.php',
        data: {
        success: function (response) {
            console.log("Checking success.");
        error: function () {
    return false;


In console, all the values pass correctly and it returns success but the value is empty. Any help is greatly appreciated.

Thank you