Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 06:29 am EST

Geeklog Forums

Problems with Icons


Status: offline

scubasteve

Forum User
Junior
Registered: 11/19/04
Posts: 24
After upgrading to 1.5.1 I've having problems with the admin icons not showing up. I must have entered something in wrong somewhere, but I have no idea where.

For example - When I click on the admin link for "Stories", the edit icon next to each one is broken. When I view the image url, it shows

http://mysite/layout/professionalhttp://mysite/layout/professional/images/edit.png

This is obviously very wrong. Any ideas where I can correct this?

Thanks.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, that's odd. Double check the URLs and paths on Configuration > Geeklog > Site. Anything out of the ordinary there?

bye, Dirk
 Quote

Status: offline

scubasteve

Forum User
Junior
Registered: 11/19/04
Posts: 24
Not that I can tell. It all appears correct. And it is only a problem with the admin icons - i.e. the edit icons on a poll, the edit story icons - basically any of the icons within the admin links.
 Quote

Status: offline

scubasteve

Forum User
Junior
Registered: 11/19/04
Posts: 24
I should also mention that the problem occurs across different themes as well.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Odd, really. The image path is built using $_CONF['layout_url']. But if that were wrong, the entire theme wouldn't work properly (e.g. the URL of the stylesheet would also be wrong).

$_CONF['layout_url'] isn't stored in the database but set "on the fly", using $_CONF['site_url'] and $_CONF['theme']. And again, if those were wrong, you'd see much more dramatic problems.

So I only have a few (albeit far-fetched) ideas: When you upgraded (from which version?), maybe you didn't upgrade all the files. Candidates that could cause problems would be lib-admin.php and config.class.php.

Other than that - maybe something is overwriting the layout_url? Any add-ons or modifications that may have done that?

bye, Dirk
 Quote

Status: offline

scubasteve

Forum User
Junior
Registered: 11/19/04
Posts: 24
Quote by: Dirk

Odd, really. The image path is built using $_CONF['layout_url']. But if that were wrong, the entire theme wouldn't work properly (e.g. the URL of the stylesheet would also be wrong).

$_CONF['layout_url'] isn't stored in the database but set "on the fly", using $_CONF['site_url'] and $_CONF['theme']. And again, if those were wrong, you'd see much more dramatic problems.



Yeah that's what I though....but I'm only seeing this problem with the admin icons.

So I only have a few (albeit far-fetched) ideas: When you upgraded (from which version?), maybe you didn't upgrade all the files. Candidates that could cause problems would be lib-admin.php and config.class.php.

Both lib-admin.php and config.class.php say "Geeklog 1.5" . My current version of geeklog is 1.5.1

I upgraded from 1.4.0 incrementally to 1.5.1. And when I did, I moved the old directories and made new ones so I don't think I could have missed replacing some files.


Other than that - maybe something is overwriting the layout_url? Any add-ons or modifications that may have done that?

bye, Dirk[/p]

I'll check with my add-ons by disabling them one by one and report back.
 Quote

Status: offline

scubasteve

Forum User
Junior
Registered: 11/19/04
Posts: 24
No go with disabling all add-ons. Problem remains. Confused
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Can you stick a few calls to COM_errorLog in to the config class and the admin lists to log the values of $_CONF['layout_url'] and the parts that are used to set it?

- In function _post_configuration in config.class.php, before and after $this->config_array['Core']['layout_url'] is set (I'd log all the variables used in those 2 lines).

- In function ADMIN_list in lib-admin.php, where it sets the $icon_url.

Then try again and check your error.log.

bye, Dirk
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: Dirk

Can you stick a few calls to COM_errorLog in to the config class and the admin lists to log the values of $_CONF['layout_url'] and the parts that are used to set it?

Will COM_errorLog work inside config class if $_CONF['path_log'] has not been assigned yet? You may need to add $_CONF['path_log'] to your siteconfig.php
 Quote

All times are EST. The time is now 06:29 am.

  • 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