wendydej
Offline
Posts: 60
|
 |
« on: January 06, 2007, 11:14:26 AM » |
|
I updated my website yesterday from 2.6.4 to 2.6.5, but when I wanted to put the news module in a page, I got the following errors: - Fatal error: Call to a member function on a non-object in /home/jetstigt/public_html/modules/news/modify.php on line 54 That line 54 is this: if($query_posts->numRows() > 0) { - Fatal error: Call to a member function on a non-object in /home/jetstigt/public_html/framework/class.order.php on line 127 That line 127 is this: if($get_last->numRows() > 0) { I then checked the errorlog which was in the news folder and it also said this: - Fatal error: Call to a member function on a non-object in /home/jetstigt/public_html/modules/news/modify_settings.php on line 33 That line 33 is this: $fetch_content = $query_content->fetchRow(); I have also updated another website to 2.6.5., but the News module in that website worked just fine. Can anyone help me?
|
|
|
|
|
Logged
|
|
|
|
|
kweitzel
|
 |
« Reply #1 on: January 06, 2007, 12:30:09 PM » |
|
Did you use the advanced newmodule (the add-on) on this site?
cheers
Klaus
|
|
|
|
|
Logged
|
WebsiteBaker Org e.V. - for WebsiteBaker
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #2 on: January 06, 2007, 01:38:05 PM » |
|
No, I didn't. I tried deleting the news-module from version 2.6.5. and replacing it with news module 3rd update, but that didn't work. I went to update_news.php, and got this: Adding new field to database table mod_news_posts Table 'jetstigt_cms.mod_news_posts' doesn't exist
Copying field posted_when value to published_when
Fatal error: Call to a member function on a non-object in /home/jetstigt/public_html/modules/news/update_news.php on line 72
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
|
 |
« Reply #3 on: January 06, 2007, 05:51:37 PM » |
|
Hello, and replacing it with news module 3rd update From where you have this version? It seems that you have used a advanced version of the news modul from the forum. As you now have tried to uninstall ( i think you got errors) and have replaced some files with a version i don't know and also have runned a update script wich i don't know what ist does i think you now have a broken news modul wich definetly didn't work and i think als could not be repaired. So how to get a news modul working again? 1. Delete all news (if possible) 2. Delete all pages with news 3. Again try uninstalling the news modul (ignore the error messages) 4. Delete all files in the modules/news folder 5. Look with phpmyadmin if you have any news folders in your installation (mod_news .....) and if yes delete them. At this stadium you should have a cleaned WB version. To install the news modul do the following: 1. Ftp all files from WB 2.6.5 modules/news to your server. (Alternativ you can also use the advanced files from the addons page. 2. Go in WB admin to settings - advanced options and reload with the reload tool wich you find at the bottom of the page the modules. Now you should have a working news modul and can start to create new news pages. Matthias
|
|
|
|
|
Logged
|
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #4 on: January 07, 2007, 10:26:39 AM » |
|
I did everything you said, but now I get this error: Table 'jetstigt_cms.mod_news_settings' doesn't exist (jetstigt_cms is the name of my database of course). If I try to add things anyway, I get the same errors.
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
|
 |
« Reply #5 on: January 07, 2007, 11:54:43 AM » |
|
Hello,
wich tables from the news moduls are created? Can you look with phpmyadmin.
What about your server config? Apache or IIS, Mysql and php version?
Matthias
|
|
|
|
|
Logged
|
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #6 on: January 07, 2007, 12:16:46 PM » |
|
There are no tables of the news module created! I do have the other modules (mod_guestbook, mod_wrapper, etc.), but no tables for news.
This server has Apache version 1.3.37, MySQL version 4.1.21-standard and PHP version 4.4.4
|
|
|
|
|
Logged
|
|
|
|
|
kweitzel
|
 |
« Reply #7 on: January 07, 2007, 12:24:10 PM » |
|
Which files did you upload back to your server? The original newsmodul-files or the updated news-module files?
It looks like the "install script" didn't run. Are you shure you selected the modules with the reload add-on tool?
cheers
Klaus
|
|
|
|
|
Logged
|
WebsiteBaker Org e.V. - for WebsiteBaker
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #8 on: January 07, 2007, 12:48:31 PM » |
|
I uploaded the news-files that came with the 2.6.5 version.
I did select the modules (I selected everything just to be sure) with the reload tool.
How would I go about installing the news-module without having to start my website all over again?
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
|
 |
« Reply #9 on: January 07, 2007, 01:02:41 PM » |
|
Hello,
if you have uploaded the original wb 2.6.5 files and have used the reload tool, all tables should be generated. You can try to call the install script manually, but i think the result will be the same.
call: ..../modules/news/install.php from your browser and post the result.
If all other things work it's not needed to install WB again. It then seems to be only a news modul problem. Will look at the install scropt, maybe i found a issue.
Matthias
|
|
|
|
|
Logged
|
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #10 on: January 07, 2007, 01:15:17 PM » |
|
When I run ../modules/news/install.php I just get a blank page.
|
|
|
|
« Last Edit: January 07, 2007, 02:54:01 PM by wendydej »
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
|
 |
« Reply #11 on: January 07, 2007, 05:41:14 PM » |
|
Hello,
ok have done a little bit testing and there seems to be a bug in the reload tool. With this no tables where generated. Hope we can fix this soon.
Attached you find a installable version of the news Modul of WB 2.6.5. Install it as a normal modul. As i don't know if from your earlier versions are database entries or files on the server wich maybe could cause problems, please do after the install a uninstall and a new install. This way you can be shure all is working then.
Have fun
Matthias
|
|
|
|
|
Logged
|
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #12 on: January 08, 2007, 03:55:59 PM » |
|
Basically it works, but when I want to add a news-item or enter the options, I get a 500 Internal Server Error. Should I do something else for this to work?
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
|
 |
« Reply #13 on: January 08, 2007, 04:07:21 PM » |
|
Hello,
so did you follow the instructions from above and did you use for the install the attached zipfile?
Matthias
|
|
|
|
|
Logged
|
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #14 on: January 08, 2007, 04:12:44 PM » |
|
Yes, I did! I still get the 500 Internal Server Error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@jetstigter.nl and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
|
|
|
|
|
Logged
|
|
|
|
|
kweitzel
|
 |
« Reply #15 on: January 08, 2007, 04:25:27 PM » |
|
can zou check the server errorlog and post here please: More information about this error may be available in the server error log. cheers Klaus
|
|
|
|
|
Logged
|
WebsiteBaker Org e.V. - for WebsiteBaker
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #16 on: January 08, 2007, 04:32:08 PM » |
|
PHP Fatal error: Cannot redeclare rm_full_dir() (previously declared in /home/jetstigt/public_html/framework/functions.php:43) in /home/jetstigt/public_html/framework/functions.php on line 43
|
|
|
|
|
Logged
|
|
|
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #18 on: January 08, 2007, 05:06:16 PM » |
|
When I run ../modules/news/repair_search.php I get the same 500 Internal Server Error.
If I try to run it in another module (like form) I get this message: Creating search for News again (Just to be sure). I assume this is what is supposed to happen, but it still doesn't work for the news module.
Is this a permission problem? Should a certain file have a certain permission (like 755 or 777) that might have gone wrong?
|
|
|
|
|
Logged
|
|
|
|
|
kweitzel
|
 |
« Reply #19 on: January 08, 2007, 05:17:54 PM » |
|
it is OK for the file to have executing permission from the WWW-User ... nothing else required. But the message says, that it did it's trick.
Did you reset the module's folder- and filepermission to ownership of the WWW-User after the upload?
cheers
Klaus
|
|
|
|
|
Logged
|
WebsiteBaker Org e.V. - for WebsiteBaker
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #20 on: January 08, 2007, 05:43:29 PM » |
|
I started checking whether other things worked, but now I've found out that some other modules don't work anymore either!
When I want to edit a .css by using Template Edit, it gives me the 500 Internal Server Error. When I add a ShoutBox to a page and want to edit the options, I get the 500 error. When I add an Image Gallery and want to add an image, I get the .....
|
|
|
|
|
Logged
|
|
|
|
|
kweitzel
|
 |
« Reply #21 on: January 08, 2007, 06:21:59 PM » |
|
can you please check again with your server logs and look for the relevant entries?
Are you shure, that the server configuration did not change?
cheers
Klaus
|
|
|
|
|
Logged
|
WebsiteBaker Org e.V. - for WebsiteBaker
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #22 on: January 08, 2007, 07:57:28 PM » |
|
The server configuration did not change! The server log says this: Premature end of script headers: /home/jetstigt/public_html/modules/news/add_post.php
|
|
|
|
« Last Edit: January 08, 2007, 08:13:45 PM by wendydej »
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
|
 |
« Reply #23 on: January 08, 2007, 08:28:46 PM » |
|
@wendydej GRRRRRR  I asked you if you followed the steps i wrote and if you used the attached news.zip. You told me you did, but you didn't. Thats makes it very hard to help you. 1. You didn't use the attached file you tried installing the advanced news modul version 2.6.1.6 2. You didn't do after installing a uninstalling and new installing. This is why you have the errors. Matthias
|
|
|
|
|
Logged
|
|
|
|
wendydej
Offline
Posts: 60
|
 |
« Reply #24 on: January 08, 2007, 08:37:34 PM » |
|
Matthias,
1. I DID use the attached file news.zip, I did NOT try installing the advanced news module. 2. I installed the attached news.zip, then uninstalled (I got no errors when I uninstalled, it neatly disappeared from the modules list) and then I installed again.
I even repeated the whole process again, and then again but with reloading every step, but still no luck!
|
|
|
|
« Last Edit: January 08, 2007, 08:41:58 PM by wendydej »
|
Logged
|
|
|
|
|