Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 18. Apr 2024, 21:30

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 47 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: 7. Jul 2009, 14:29 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
Ok, an exact cut and paste was done and the result was:

starting session...
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/phpinfo.php:3) in /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/phpinfo.php on line 4
session started

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 7. Jul 2009, 14:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
thats fine - so the session can be started.

but then I don't unserstand why the tfu files produce no output. you can add an echo in the tfu_login.php as well at the beginning.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 7. Jul 2009, 22:46 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
Ok, I added

echo 'bob';

at the start of tfu_login.php and got:

Quote:
bob
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_login.php:12) in /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_login.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_login.php:12) in /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_helper.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_login.php:12) in /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_helper.php on line 39

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 8. Jul 2009, 08:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
o.k. seem you can call it.

don't make any eachos before the session_start() - this cuase the errors.

you can make a couple of echos to see how far php gets. I think there is a function somewhere which is not available and this causes to crash the system.

if you open tfu_helper.php you find

@ob_start(); in line 32 and
@ob_end_clean(); at the very end.

remove them because they catch error messages which are returned.
Normally they are in the php log but I don't know if you have access to it.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 8. Jul 2009, 13:52 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
Ok, I inserted echo 'session started'; and echo 'temp session restored'; after the session_start() and restore_temp_session(); and I got:

Quote:
session started
Warning: Cannot modify header information - headers already sent by (output started at /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_login.php:17) in /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_helper.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_login.php:17) in /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_helper.php on line 38
temp session restored

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 8. Jul 2009, 15:10 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to continue debugging and check how far you get.
Please note that if you echo something then the flash does not work.

We only do this to find the point where php fails - don't you have access to the php log. Because there such things are written to - or have you checked if a file tfu.log does exist?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 01:03 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
I've found a new file called error_log and it contains stuff like
Quote:
[10-Jul-2009 08:13:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_login.php:17) in /home/dbnsworg/public_html/administrator/components/com_joomla_flash_uploader/tfu/tfu_helper.php on line 38


I'll keep debugging and see where the error starts showing up. I think, with my echo statements removed, nothing shows. But I'll try that too.

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 07:29 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
Ok, after a bit of echoing on tfu_login.php, I found that it goes down to

Quote:
if (isset($_POST['twg_user']) && isset($_POST['twg_pass']))


but skips it. I inserted another echo in the last section of the code, as per the below:

Quote:
} else {
echo 'before include';
include $install_path . "tfu_config.php";
echo 'after include';
printServerInfo();
}


and only "before include" is displayed. Is this normal behaviour?

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 07:31 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
By the way, if I removed
Quote:
include $install_path . "tfu_config.php";

then the printServerInfo() will work fine.

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 07:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Then any of the functions I use in tfu_config.php do not work on your server.

check tfu_config.php - there are only very few functions. Simply remove each of them and try which one killes your php.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 08:49 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
Hi mate,

Turns out it's this line:

if (file_exists(dirname(__FILE__) . '/my_' . basename(__FILE__))) {
include dirname(__FILE__) . '/my_' . basename(__FILE__);
}

The authentication problem is gone once the line is commented out... but, I can't upload. The process of uploading occurs, but the file is not stored...

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 09:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This line is important because there the settings you make in the backend of JFU are loaded. The upload has to fail because all parameters are missing.

So the error is in the my_tfu_config.php.

but are you sure you don't get a tfu.log?


- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 09:09 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
Ok I've found it - but it still contains the same irrelevant lines quoted before.

Quote:
7.10.2009 8:48:03 - ERROR 2048 in blic_html/libraries/joomla/html/html.php, line 83: Non-static method JHTMLSelect::radiolist() cannot be called statically

07.10.2009 8:48:03 - ERROR 2048 in blic_html/libraries/joomla/html/html.php, line 87: Non-static method JHTMLSelect::radiolist() cannot be called statically


(there are lots of these same lines)

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 09:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
then you have to continue to debug in my_tfu_config.php.

check if there is a problem including the Joomla config there.

- michael


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jul 2009, 10:09 
Offline

Joined: 29. Jun 2009, 08:48
Posts: 25
Ok, debugging my_tfu_config.php, I found that the function breaks on the below line:

Quote:
if (file_exists($joomla_config)) {
echo 'before include config';
include $joomla_config;
echo 'after include config';
}


"before include config" is displayed, not "after".

_________________
http://www.sydneydragonblades.com
http://www.dbnsw.org.au


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 47 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy