FIXED Bug Add Uploaded Images To DB


Subject: Bug Add Uploaded Images To DB
Hi again

I have found other bug.

File: install/install.php
Code: [Download] [Hide]
  1. // If you decomment this line, then you will be able to use this file without sessions handling in latest Icy Phoenix 
  2. //define('BYPASS_SESSION', true); 


If you use this option, you get this error
Quote:
PHP Fatal error: Call to a member function get() on a non-object in XXXXXXXXXX/foro.lapandadelcentollo.com/install/includes/functions_install.php on line 2747


$cache is not working
Code: [Download] [Hide]
  1. if (($all_pics_array = $cache->get('_uploaded_images')) === false) 


Bye

Subject: Re: Bug Add Uploaded Images To DB
Hi dinoyoco,

I'm only guessing here but did you:

a. Rename the files/posted_images folder to files/images
b. Apply all permissions listed in Fresh Installation

Subject: Re: Bug Add Uploaded Images To DB
Yes i know it. The question is if you use "BYPASS_SESSION",
Code: [Download] [Hide]
  1. define('BYPASS_SESSION', true); 


you will get the error. But if you don't use "BYPASS_SESSION",
Code: [Download] [Hide]
  1. //define('BYPASS_SESSION', true); 


you will not get the error.

Bye

Subject: Re: Bug Add Uploaded Images To DB
Can you try this?

OPEN install/common.php
FIND
Code: [Download] [Hide] [Select]
include(IP_ROOT_PATH . 'includes/utf/utf_tools.' . PHP_EXT);

AFTER ADD
Code: [Download] [Hide] [Select]
include(IP_ROOT_PATH . 'includes/class_cache.' . PHP_EXT);
include(IP_ROOT_PATH . 'includes/class_cache_extends.' . PHP_EXT);
$cache = new ip_cache();

Subject: Re: Bug Add Uploaded Images To DB
Thanks, now it works.

Bye

Subject: Re: Bug Add Uploaded Images To DB
Great... I have amended it.

Thanks for reporting.


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.3363s (PHP: 7% SQL: 93%)
SQL queries: 15 - Debug Off - GZIP Enabled