简体   繁体   English

丢失了Drupal节点内容

[英]Lost Drupal node content

A Drupal site a friend has on my server (WHM/CPanel) show his menu navigation on the left but the links go to the Welcome to your new site screen. 朋友在我的服务器上的Drupal站点(WHM / CPanel)在左侧显示他的菜单导航,但链接转到欢迎使用新站点屏幕。
I think he must have tried to upgrade Drupal. 我认为他一定试图升级Drupal。 How to I resync the navigation so /node/15 points to his actual content? 如何重新同步导航使/ node / 15指向他的实际内容?

EDIT MySQL was updated yesterday and then my friend called today to say his Drupal site was broken. 编辑MySQL昨天更新,然后我的朋友今天打电话说他的Drupal网站坏了。 I was away from my computer so I asked my brother in law to help since he new Drupal better than I. I'm not sure exactly everything the two of them did but it looks like they upgraded to a newer Drupal or tried to upgrade because when you browse to his site, it shows the standard 我离开了我的电脑,所以我问我的兄弟,因为他新的Drupal比我更好。我不确定他们两个人做了什么,但看起来他们升级到更新的Drupal或试图升级,因为当您浏览到他的网站时,它会显示标准

 Welcome to your new Drupal website!
 Please follow these steps to set up and start using your website:

But all his menu navigation (I guess they are nodes?) are displayed but when you click any one of those links, it just goes to the same default `Welcome to your Drupal site' 但是他的所有菜单导航(我猜他们都是节点?)都显示出来,但是当你点击这些链接中的任何一个时,它就会转到相同的默认状态`欢迎来到你的Drupal网站'

I solved my problem. 我解决了我的问题。 I noticed the node_revisions table in the database had all the content entries. 我注意到数据库中的node_revisions表具有所有内容条目。 But there were no corresponding entries in the node table. 但是node表中没有相应的条目。 Through the main site I added some content and noticed the entries made in both those tables. 通过主站点,我添加了一些内容,并注意到这两个表中的条目。 I made note of the format. 我记下了格式。 I then inserted records accordingly into the nodes table and whola all content appeared when I clicked the menu links. 然后,我将记录相应地插入到nodes表中,当我单击菜单链接时,会显示所有内容。

I did a bulk SQL load using phpMyAadmin 我使用phpMyAadmin进行了批量SQL加载

INSERT INTO `node` (`nid`, `vid`, `type`, `title`, `uid`, `status`, `created`, `changed`, `comment`, `promote`, `moderate`, `sticky`) VALUES
(1, 1, 'page', 'zzxxzz', 1, 1, 1329017099, 1329017449, 0, 0, 0, 0),
(2, 2, 'page', 'zzxxzz', 1, 1, 1329017099, 1329017449, 0, 0, 0, 0),
(3, 3, 'page', 'zzxxzz', 1, 1, 1329017099, 1329017449, 0, 0, 0, 0),
(4, 4, 'page', 'zzxxzz', 1, 1, 1329017099, 1329017449, 0, 0, 0, 0),
(5, 5, 'page', 'zzxxzz', 1, 1, 1329017099, 1329017449, 0, 0, 0, 0),

etc... up to the total number of nodes listed in the node_revision table etc ...直到node_revision表中列出的节点总数

I had 141 nodes. 我有141个节点。

节点修订表具有写入脚本以将数据导入节点表的所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM