Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:50 pm EST

Geeklog Forums

Smooth_Blue error


Status: offline

usarfans

Forum User
Junior
Registered: 08/10/03
Posts: 34
Hi,

Just upgraded from 1.3.11 to 1.4.1.

I use the Smooth_Blue theme.

Whenever I go to any admin page (polls, users, groups, etc. I see a missing icon/broken html code and an error is generated in my system error log. I've searched as best as I know how, but can't seem to narrow down which might be the offending file.

Here is what the error log shows:
Text Formatted Code
File does not exist: /home/myusername/public_html/admin/<img src=


and here is a capture of the portion of the screen which shows the problem.
http://www.usarfans.com/images/sb_error.png

In a related question, I've read a ton of posts here that seem to point out that themes other than the professional theme quite often have problems when Geeklog is up to version 1.4.1. The common suggestion is to copy all the files from the professional theme to the theme with the problem. Not being a theme expert - I'm just a user and have only altered the Smooth Blue theme style.css file to change a few basic colors - I'm hesitant to just copy all of the professional files over out of ignorance on how much it will change the Smooth_Blue look. What files/directories from the professional theme can be copied to the Smooth_Blue theme without changing the way the SB theme works and looks?

Thanks,

Lou
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Lets see (I am doing this from memory) to update smooth_blue to geeklog 1.4.1. Download the geeklog 1.4.0 version of smooth blue (on this site)

Copy the following directories over from the professional theme

admin
preferences
profiles
submit
users

Copy over the images from the images dir

delete_item.gif
and the info.png one

Copy the tab images from navbar

Look at the professional header.thtml and copy out most of the stuff between the head tag and put in into the smooth_blue header.html

and then copy and paste the info in the professional themes style.css and paste it in front of the info in the smooth_blue style.css.

From here everything will work but you will still have to tweak a few things.


One of the Geeklog Core Developers.
 Quote

Status: offline

usarfans

Forum User
Junior
Registered: 08/10/03
Posts: 34
Thanks for the suggestions Laugh.. I will try them soon.

What really has me baffled is this particular problem (3rd row of table in the following code section, which is from the "view source" from Firefox once a page is displayed. There's that pesky extra >" alt=""> which is goobering up the displaying of the image.

It affects these .php files: block, calendar, syndication, database, group, links, plugin, polls, static pages, story, and users - so it must be some sort of common template file but for the life of me I can't find it.....

Text Formatted Code
<!-- START BLOCK -->

<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>

    <td align="left" class="blockheader">&nbsp;Last 10 Backups</td>
    <td align="right" class="blockheader">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="blockcontent">                                                        <table border="0" cellspacing="0" cellpadding="2" width="100%" style="margin-top:5px;">
                                <tr>
                                    <td rowspan="2">
                                        <img src="<img src="http://www.usarfans.com/layout/Smooth_Blue/images/icons/database.gif" alt="">" alt="">
                                    </td>

                                    <td>[ Create New | Admin Home ]
                                    </td>
                                </tr>
                                <tr>
                                    <td>To create a new backup of your site's database, click on "Create New" above.<br>Total number of backups: 0</td>

                                </tr>
                            </table>

                            <table class="admin-list-table">
                                <tr style="background:#FFFFFF;">
                                 <th class="admin-list-headerfield"  >Backup file</th>
<th class="admin-list-headerfield"  >Size</th>

                                </tr>

                               
                            </table>
                            <center><b>- No entries found -</b></center><br />                            
    </td>
  </tr>
</table>
<br /><!-- END BLOCK -->


Here is another partial screenshot of a db backup page with table cells hightlighted where you can see the problem in the upper left corner of the table.

http://www.usarfans.com/images/SB_error2.png


Lou
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
I actually had the same error at one point. If you look closely you will see that it is actually imbedding the entire html img tag instead of just embedding the location of the image. 2 files are used here. Plugins.php in the admin directory off of public_html and the lib-plugins.php file in the system directory. Did you update your system files?




One of the Geeklog Core Developers.
 Quote

Status: offline

usarfans

Forum User
Junior
Registered: 08/10/03
Posts: 34
Quote by: Laugh

2 files are used here. Plugins.php in the admin directory off of public_html and the lib-plugins.php file in the system directory. Did you update your system files?


I followed the upgrade instructions to go from 1.3.11 to 1.4.1 to the letter so if those two files were part of 1.4.1 which was uploaded to the site, then yes I guess I did update the system files. But, not being the most brilliant star in the sky, I will most certainly check again to be sure I did.

Thanks for the pointer in the right direction! Luckily this problem is not causing any real issues, mostly just bugging the crap out of me...

Lou
 Quote

Status: offline

usarfans

Forum User
Junior
Registered: 08/10/03
Posts: 34
I checked the plugins.php and the lib-plugins.php files. Both are for version 1.4. I did not see anything obvious in them to indicate the issue you mentioned.

While I was there, I looked at the system/lib-admin.php file. It is for version 1.4, but two lines of code caught my eye and I am not knowledgeable enough to know if they are correct. Does this look right?

Line #92
Text Formatted Code
$admin_templates->set_var('icon', "<img src=\"{$text_arr['icon']}\" alt=\"\">");


Line #292
Text Formatted Code
$admin_templates->set_var('icon', "<img src=\"{$text_arr['icon']}\" alt=\"\">");




Lou
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
I wish I coul remember how I fixed this issue. Grrrr...

Those line you gave are correct.

Does it happen in the Admin Home area (where it lists all the icons for the different plugins, etc..)? From what I remember it doesn't.

Also check to see if it happens in the professional theme or not. If it doesn't happen then we know it is a template problem for sure.

If we don't figure this out soon I'll modify my smooth_blue theme back to the original look and upload it.
One of the Geeklog Core Developers.
 Quote

Status: offline

usarfans

Forum User
Junior
Registered: 08/10/03
Posts: 34
Just did some quick checks.

No, it does NOT affect the main admin home area (moderation.php) That particular upper left table section is not used there.

Yes, when I switch back to the professional theme, it does work properly.

Lou
 Quote

Status: offline

usarfans

Forum User
Junior
Registered: 08/10/03
Posts: 34

I know it's been nearly a month since Laugh suggested a course of action but I just found the time to try his suggestion and wanted to give an update.

Copying the specified directories and images as suggested cured my display problem! I did not attempt any of the header template or css changes and right now since all is working to the best of my knowledge, I'm not going to create problems by messing with things I'm not familiar with.

Thanks for the help Laugh!

Lou
 Quote

All times are EST. The time is now 04:50 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content