Hello, I did an installation 2 weeks ago for 45 students and from today the blogs are not available anymore. Can anyone explain what I have to configure to fix this problem?
Fatal error: main(): Failed opening required 'CONFIGPATHwp-config.php' (include_path='.:') in /var/www/vhosts/noordmanmedia.nl/httpdocs/mcmblogs/lyceum/wp-blog-header.php on line 13
The server can't find the file wp-config.php. Are you sure it's still there and not been moved or something?
It also seems that the variable "CONFIGPATH" is not defined, meaning that even if the file were there it would not be found as the server is looking in the wrong place. The CONFIGPATH is set by using the dirname() function, if that dind't work for some reason then it could cause the problem you are seeing. Can someone more experienced in php confirm this for me?
Thank you for your info. I searched for the right information but i'm not experienced enough. So I did the following: I made a backup from the sql database with all the content. I created a new database, fresh install in a new directory and imported the backed up database. No errors so far. Then I loged in as admin an YEH al the blogs where there on the portalpage. But... when I clicked one of the links I get this error : /mcmblogs/lyceum/gerwinbosscha was not found on this server. I'am able to login, both as admin and as user. Who can help me, please?
I think I know what happend during the first error. The students in my course have te responibility to manage the course themselves. So they have to deside which guestlectors, what fieldtrips and what they want to learn during the minor Crossmedia. (ofcourse there are limits :-)) One of the experienced PHP students co-managed our lyceumsite. He told me that he made an error in deleting 2 or 3 directories. He replaced them with the directories from a fresh install. I still have the 'old' install online...
About the second error: www.noordmanmedia.nl/blogsmcm/lyceum is the url 1) I created a new database via plesk -> phpadmin 2) I installed lyceum as normal 3) I imported the .sql export from the old database 4) I checked al the tables, all the data is imported. 5) I loged in as the admin; it worked 6) I loged in as user; it worked and I can see the 2 blogs (one personal-one general) i'm managing 7) When I click on one of my blogs (loged in as User) I see the template, it gives the richt username, but in the postsection It says 404. 8) When I click on one of the links in the portal I get the same result as in nr 7)
about the .htaccess file, If I stick to the database and php code, I do not need to change the .htaccess file?
I could vist http://www.noordmanmedia.nl/blogsmcm/lyceum/portal.php and click on the blogs there, but they all came up with 404 not found. There was no clue as to why that was, and it sounds like your method would work.
One question though: do you have any posts on these blogs? I'm not sure how Lyceum would behave if no posts were found...
there are 45 students, 30 of them created a blog and posts. It was up for 2 weeks so (30x5(posts a week)=150x2= 300 posts + comments. I can Export the Dbase to text. Install a new lyceum in a new directoy + dbase, and ask the students to post again.... but that was my plan-X.
I hope someone can help. Lessons are starting next monday.
[1] you have to have a .htaccess file, otherwise nothing will work. visit /system-admin/rewriterules.php and see if they are the same as what is in your .htaccess file.
[2] the bahvior i am seeing in the blogs is the same behavior that a blog has if it has 0 posts. This makes me suspicious that maybe the blog ids in the blog table are somehow now different from the blog ids in the categories table (the posts are linked to blogs through the categories table). Does this clue make you think of any possible solutions?
[3] you can also try this: go to the admin section of a blog, to general settings. change the slug. this will results in some things being reset in the db, so there is a chance it will help you.
I think I found the problem. In Tabel: wp_1options in option_value i found a wrong site url http://www.noordmanmedia.nl/mcmblogs/lyceum it must be www.noordmanmedia.nl/blogsmcm/lyceum. How can I change all the urls? A new install?
Its working again. I changend every entry in the database with the wrong url into the right one. Everything works fine!
So what happend? 1) first lyceum install with directory name: /blogsmcm/lyceum went wrong 2) I did an export from this database 3) I created a fresh lyceum install in a new directory: /mcmblogs/lyceum 4) I imported the exported sql in the new setup. 5) the blogs where not accesable any more.
Solution: in the 'option' table in the 'option value' field, in blogs and comment I found URLS with the old directory. I changed the urls and everything works fine!
ericvoigt-- would you mind documenting your solution somewhere and sharing it? Either on a blog post on your own blog, or the Lyceum wiki, or here, wherever you prefer.