• ugurc

    (@ugurc)


    hi,

    i’m trying to install wordpress but my siteurl seems wrong both before and after installation.

    before installation i checked the page source and saw this:

    <script type="text/javascript" src="://www.example.com/wp-includes/js/jquery/jquery.js?ver=1.11.1"></script>

    still i continued the installion and noticed that siteurl is also wrong in the database (but nothing is wrong with home url in db).

    because of that javascript source links and CSS source links are also wrong and my blog is not working. i defined siteurl and home in the web-config.php

    define('WP_HOME','https://www.example.com');
    define('WP_SITEURL','https://www.example.com');

    but it didn’t solve my problem.

    Any one have any thoughts on the matter?

Viewing 5 replies - 1 through 5 (of 5 total)
  • leejosepho

    (@leejosepho)

    siteurl is also wrong in the database (but nothing is wrong with home url in db).

    i defined siteurl and home in the web-config.php … but it didn’t solve my problem.

    I once had some trouble with a certain path seeming skewed until I learned the involved plugin had been written (instructed or constructed) to use ‘actual server path’ separate from anything such as you are mentioning. I have very little experience in actually sorting all of that kind of thing out, but I would begin with a detailed review of how your server knows or recognizes where to send things and whether you might need some tweaking there.

    Thread Starter ugurc

    (@ugurc)

    i guess i found something. esc_url() function returns wrong URLs too.

    In “install.php” there is a line like this :
    <h1 id="logo"><a href="<?php echo esc_url( __( 'https://www.ads-software.com/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></h1>

    on the install page, the www.ads-software.com link seems like this in the page source:

    https://www.example.com/wp-admin/://www.ads-software.com/

    for example :
    <?php echo esc_url('https://google.com/'); ?>
    result is :
    ://google.com/

    what should i do ?

    leejosepho

    (@leejosepho)

    That is far beyond my knowledge, but there are core coders here at the forums who will likely see your post and respond. One thing I do know is that you could safely delete-and-replace the entire /wp-admin/ folder to see whether something might have been corrupted (as does occasionally happen) during the initial upload and/or installation.

    Thread Starter ugurc

    (@ugurc)

    at least you are trying to help. thanks. i reuploaded the entire wp but nothing has changed.

    btw, finally i tried this :
    define('WP_SITEURL','../../../');
    and tadaaaa. css and js problem are gone except the other links like www.ads-software.com are still wrong (btw, my wp is uploaded on httpdocs, not in a subfolder). BUT now i can’t complete the installation correctly. after the page that asks information (site title, username etc.) some errors occured :

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' meta_key, meta_value FROM wp_usermeta WHERE IN (89) ORDER BY umeta_id ASC' at line 1]
    SELECT , meta_key, meta_value FROM wp_usermeta WHERE IN (89) ORDER BY umeta_id ASC
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'nickname' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'first_name' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'last_name' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'description' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'rich_editing' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'comment_shortcuts' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'admin_color' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'use_ssl' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'show_admin_bar_front' AND = 89
    
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 89' at line 1]
    SELECT umeta_id FROM wp_usermeta WHERE meta_key = 'show_welcome_panel' AND = 89

    at the bottom of the page it says “Success!”. home page says “Nothing found” . i checked the tables created in the db. all seems empty except wp_options.

    the server i’m using has :

    MySQL client version: 5.0.22
    PHP version 5.2.17

    leejosepho

    (@leejosepho)

    There might be something very simple here we are both missing since this is our first encounter with it!

    Other than beginning from scratch at the server after having deleted the entire installation and it database and then double-checking the domain’s assignment and server path to the destination folder before doing a manual installation, I have run out of ideas to try.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘my siteurl seems wrong both before and after installation’ is closed to new replies.