- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- September 2002
- Status:
- offline
- last visit:
- 23.03.06
- Posts:
- 12
Last week I got notice that our site was hacked into due to an old version of linux on our servers..
Anyway, I had our servers crew erase all our public_html files and add a new one so I could start from scratch and re-upload our old site which was running PN 7.2.1
Luckily I had backed up the old DB about a week prior as postnuke.gz file compressed for reuploading to the MSQL server etc..
So I naturally visited our friendly local PN site to get some support and noticed that a newer version was available. PN 7.2.3
Well, I have decided to see if this new version is compatible with my old DB file.
So I started to upload the newer version.
I also noticed that PN install will not grab a previous DB wether choosing the new install option or the upgrade option.
I then decided to erase the saved uploaded DB and start at zero and let PN Install create the data base.
Which was fine but I need my old DB info and not a clean one.
Then I erased the newly blank DB written by PN 7.2.3
and uploaded my backed up database in .gz version.
It seemed to upload ok but I have the following errors:
Warning: pnthemeload(themes/postnuke"/theme.php) [function.pnthemeload]: failed to create stream: No such file or directory in /home/mayan/public_html/includes/pnAPI.php on line 996
Warning: pnthemeload() [function.pnthemeload]: Failed opening 'themes/postnuke"/theme.php' for inclusion (include_path='') in /home/mayan/public_html/includes/pnAPI.php on line 996
Fatal error: call to undefined function: themeheader() in /home/mayan/public_html/header.php on line 191
I seemed to recall a few months ago in a previous topic that there is a way to reset the themes option by going into PHP Myadmin and going to:
****_module_vars then browse and into themes PN id 9 default_theme
and edit from there.
what I do not remember is the exact setting which was something like:
s:9: "PostNuke" or something like that.
I do not know if that will solve the first warning error but thought of it as an option.
The fatal error, I have no idea what to do.
Please advise.
[/b]
-
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
The problem with the theme lies in the setting you outlined. Somehow some stray characters got into your DB
The function pnthemeload is try to load 'themes/postnuke"/theme.php' - notice the stray characters in the middle.
A quick way of restting this is to use the Swiss Army Knife tool from here. This will allow you to do a theme reset without going into the DB.
Read the docs carefully on this tool and remove after use.
-Mark -
- rank:
-
Professional
- registered:
- December 1969
- Status:
- offline
- last visit:
- 17.06.04
- Posts:
- 2122
Cetacean
Last week I got notice that our site was hacked into due to an old version of linux on our servers..
Anyway, I had our servers crew erase all our public_html files and add a new one so I could start from scratch and re-upload our old site which was running PN 7.2.1
Luckily I had backed up the old DB about a week prior as postnuke.gz file compressed for reuploading to the MSQL server etc..
So I naturally visited our friendly local PN site to get some support and noticed that a newer version was available. PN 7.2.3
Well, I have decided to see if this new version is compatible with my old DB file.
To my knowledge it should be fine.
Cetacean
So I started to upload the newer version.
I also noticed that PN install will not grab a previous DB wether choosing the new install option or the upgrade option.
I then decided to erase the saved uploaded DB and start at zero and let PN Install create the data base.
Which was fine but I need my old DB info and not a clean one.
I have done a fresh install of PostNuke and injected the data from an old one via phpMyAdmin many times, it can be done.
Cetacean
Then I erased the newly blank DB written by PN 7.2.3
and uploaded my backed up database in .gz version.
It seemed to upload ok but I have the following errors:
Warning: pnthemeload(themes/postnuke"/theme.php) [function.pnthemeload]: failed to create stream: No such file or directory in /home/mayan/public_html/includes/pnAPI.php on line 996
Warning: pnthemeload() [function.pnthemeload]: Failed opening 'themes/postnuke"/theme.php' for inclusion (include_path='') in /home/mayan/public_html/includes/pnAPI.php on line 996
Fatal error: call to undefined function: themeheader() in /home/mayan/public_html/header.php on line 191
I seemed to recall a few months ago in a previous topic that there is a way to reset the themes option by going into PHP Myadmin and going to:
****_module_vars then browse and into themes PN id 9 default_theme
and edit from there.
what I do not remember is the exact setting which was something like:
s:9: "PostNuke" or something like that.
I do not know if that will solve the first warning error but thought of it as an option.
The fatal error, I have no idea what to do.
Please advise.
[/b]
The setting in the nuke_mod_vars is
s:8:"PostNuke";
(the number 8 is the number of letters in the name PostNuke. If you were using another theme, the 8 would change to the number of letters in that other theme.)
--
Friends rock, bullshit walks -
- rank:
-
Freshman
- registered:
- September 2002
- Status:
- offline
- last visit:
- 23.03.06
- Posts:
- 12
Thanks Guys,
That helped. I didnt use Swiss Army Knife which I am sure is good for people who do not want to mess around with the DB.
But, since I had already done the switch within PHP Myadmin I tried InfoPros advise and worked just fine first time around.
However, I did notice that all the blocks need to be reconfigured and some modules reloaded as well.
But, nothing compared to losing your old site DB.
Thanks again guys I knew ya had it in ya.
