Author Topic: images gone on website but not in admin panel  (Read 7706 times)

0 Members and 1 Guest are viewing this topic.

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
images gone on website but not in admin panel
« on: October 21, 2007, 11:16:39 AM »
Our host made some errors and after the back-up was restored I'm not seeing images online but they do show up in the admin panel. All categories show up fine on the site. I've done repairs but no faults were found. Our host said that cannot do anything more.

Version: 1.7.4
Mysql: 4.1.22 (And the brackets that are mentioned in the mysql 5 threads are all there).
PHP Version 4.4.7

error message I'm receiving on the site:

Code: [Select]
An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in includes/db_mysql.php on line 116

and this one:

Code: [Select]
Warning: Cannot modify header information - headers already sent by (output started at  includes/db_mysql.php:190) in includes/functions.php on line 126
Any help is much appreciated.

Dennis

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: images gone on website but not in admin panel
« Reply #1 on: October 21, 2007, 01:15:16 PM »
Quote
An unexpected error occured. Please try again later.

If can log in admin level, you can see full error. If so, please report.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: images gone on website but not in admin panel
« Reply #2 on: October 21, 2007, 07:51:32 PM »
I'm not seeing any error message in the admin panel. Maybe I have turned that off. How do I turn it on?

Dennis

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: images gone on website but not in admin panel
« Reply #3 on: October 21, 2007, 08:13:06 PM »
Quote
How do I turn it on?

In global.php file,

find:

Quote
error_reporting(E_ERROR | E_WARNING | E_PARSE);

replace:

Code: [Select]
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(E_ALL);

Go back in page and see what is error. Is show. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: images gone on website but not in admin panel
« Reply #4 on: October 21, 2007, 09:00:31 PM »
Thanks! Here's the complete error message:

Code: [Select]
Notice: Undefined index: image_postcards in includes/functions.php on line 423

Notice: Undefined index: alt_slideshow_off in categories_slideshowII.inc on line 25

Notice: Undefined index: alt_slideshow in categories_slideshowII.inc on line 39

Notice: Undefined index: image_postcards in includes/functions.php on line 423

Notice: Undefined index: image_postcards in includes/functions.php on line 423

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in includes/db_mysql.php on line 116

Dennis

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: images gone on website but not in admin panel
« Reply #5 on: October 21, 2007, 09:55:38 PM »
Quote
Notice: Undefined index: alt_slideshow_off in categories_slideshowII.inc on line 25

Notice: Undefined index: alt_slideshow in categories_slideshowII.inc on line 39

You install Slideshow II MOD ? Is image_postcards create in DB ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: images gone on website but not in admin panel
« Reply #6 on: October 21, 2007, 10:15:20 PM »
The answer to both questions: yes

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: images gone on website but not in admin panel
« Reply #7 on: October 21, 2007, 11:29:35 PM »
Ok so please report this problem in slideshow II MOD topic.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?