• Resolved drhiii

    (@drhiii)


    Have been in a pitched battle to upgrade from ancient 2.2 to latest WP. I believe I have it except for one zany issue…

    The menu choices all seem to be hard coded. It is pointing to a non existent domain and pathway that was grandfathered from back in 2008.

    Or my question should be… can menu from back in WP 2.2 days be hard coded? I can get to the main page and it is broken up, but the data is there. But when I roll over or click on menu items like Home, or something else, it reverts to what I swear is a hard coded URL. And it of course fails.

    I do not know enough about WP or phpmyadmin, but I did pop into phpmyadmin and did a search of fields and found several occurances of the old, non existent domain. I kept thinking it had to be an errant .htaccess file somewhere but I have not found any reference to this URL anywhere. Which is why it leads me to think… URLs that are hard coded.

    Sorry for the long post but… this possible? I cannot think of what else to do to get past this issue. Ideas anyone?

Viewing 4 replies - 1 through 4 (of 4 total)
  • can menu from back in WP 2.2 days be hard coded?

    Yes. In theory, you could hardcode a menu into a site running the current version of WordPress. Have you tried examining the theme’s template files to locate this menu?

    Thread Starter drhiii

    (@drhiii)

    Hello…t hank you for the reply. I did a grep through all the file systems looking to see if anything was added to the WP files.

    fgrep -R -i “theculprit.net” *

    theculprit.net is a made up domain. Nothing showed up.

    I did go into phymyadmin and did a rudimentary search for theculprit.net string and it did show up many times. I think I may just search and replace all of them and see what happens. I have backed up the file system and .sql several times. I don’t know what else to do.

    There is no question the domain is hard coded but I just do not have enough knowledge on how to alter it. I would especially want to be able to have all links work as relative links and not absolute links. That is the real problem. Ugh….

    ANy further ideas would be most helpful. I do feel the menu links are hard coded in the data base tables. I just do not have the skills or knowledge to see exactly what and where, to be able to make correct changes.

    I can’t believe someone would hard code them in anyway but the original installer is long gone. So it is a forensics journey at this point, sigh. From someone who doesn’t quite know the wordpress forensics…

    Help??

    Thread Starter drhiii

    (@drhiii)

    I think I figured out something. A couple of variables added to the wp-config.php file establishing the URL and absolute path. Seems to be working, tho I know it is overriding what is still hardcoded in the site itself. I will let the owner sort that out….

    Thread Starter drhiii

    (@drhiii)

    Trying to mark the post as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upgrading 2.2 to latest, almost’ is closed to new replies.