Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

After upgrade to 7.2.7 problems themeswitcher and left navigation disappeared

After upgrading a site the theme switcher doesn't work anymore?
I see these errors:

fusion/maincore.php
mysql_num_rows(): supplied argument is not a valid MySQL result resource Regel: 251 19 juni 2013 19:59:44

fusion/maincore.php
mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Regel: 256

What to do?

Also my left navigation menu is disappeared.

(after taking maincore from 7.2.5 theme is okay again, but navigation panel is gone)

Thank you for your assistance
We didn't touch those functions in .07, can you provide more details from error log? If not send a PM with login details to your site for further investigation. I won't be around so much to check so if any other admin wants to check this please post.
OK, I got back my navigation panel. I had to use css_navigation_panel, I still was using navigation_panel.

I think something goes wrong in setting the theme.

I now took the maincore from 7.2.5 and added this from 727:
[syntaxhighlighter brush=html,first-line=1,highlight=0,collapse=false,html-script=false]// Checking file types of the uploaded file with known mime types list to prevent uploading unwanted files
if(isset($_FILES) && count($_FILES)) {
require_once BASEDIR.'includes/mimetypes_include.php';
$mime_types = mimeTypes();
foreach($_FILES as $each) {
if(isset($each['name']) && strlen($each['tmp_name'])) {
$file_info = pathinfo($each['name']);
$extension = $file_info['extension'];
if(array_key_exists($extension, $mime_types)) {
if($mime_types[$extension]!=$each['type']) {
die('Prevented an unwanted file upload attempt!'wink;
}
} /*else { //Let's disable this for now
//almost impossible with provided array, but we throw an error anyways
die('Unknown file type'wink;
}*/
unset($file_info,$extension);
}
}
unset($mime_types);

}

[/syntaxhighlighter]

and this:
[syntaxhighlighter brush=html,first-line=1,highlight=0,collapse=false,html-script=false]// Scan image files for malicious code
function verify_image($file) {
$txt = file_get_contents($file);
$image_safe = true;
if (preg_match('#<?php#i', $txt)) { $image_safe = false; } //edit
elseif (preg_match('#&(quot|lt|gt|nbsp|<?php);#i', $txt)) { $image_safe = false; }
[/syntaxhighlighter]


But something is changed in setting the correct theme. For that I left the 725 code as is and then it works for me now.....
There are more changes made to maincore.php in .07, modify at your own risk.
Try to re-download the full .07 pack and replace all files
OK Thanks for your help!
Thread Information
Author
Replies
5 posts
Views
2,860 times
Last Post
Last updated on 6 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: JoiNNN, pwinkelm