Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - V@no

Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 741
76
Discussion & Troubleshooting / Re: redirect error 302 instead of 404
« on: December 08, 2011, 02:38:56 AM »
It's actually lack of feature in 4images or some might say it is a feature, you decide ;) - any errors it redirects to home page instead of showing an error message.

So here it is, show the error page with 404 header if something went wrong

In details.php find:
if (!check_permission("auth_viewcat"$cat_id) || !check_permission("auth_viewimage"$cat_id) || !$image_row) {

Insert above:
if (!$image_row)
{
	
header("HTTP/1.0 404 Not Found");
	
show_error_page($lang['image_error_404_not_found']);
}


In categories.php find:
if (!$cat_id || !isset($cat_cache[$cat_id]) || !check_permission("auth_viewcat"$cat_id)) {

Insert above:
if (!$cat_id || !isset($cat_cache[$cat_id]))
{
	
header("HTTP/1.0 404 Not Found");
	
show_error_page($lang['cat_error_404_not_found']);
}


In lang/<your language>/main.php at the end, above closing ?> insert:
$lang['image_error_404_not_found'] = "Error 404 - image not found";
$lang['cat_error_404_not_found'] = "Error 404 - category not found";

77
Discussion & Troubleshooting / Re: redirect error 302 instead of 404
« on: December 06, 2011, 01:36:06 AM »
What type of "old" URL you are referring to?

78
In that case not all files got overwritten, or you missed some of the files.

79
ok, but at which point they are defined? after global.php included or before?

80
What version did you use before? and where are your variables defined?

81
It depends where your variables are defined. If you want to use them, you'll need define them before language files are included, which means it must be done in global.php

If not, then you'll need use some tags instead of variables and replace them with your variables value later on.

82
Mods & Plugins (Releases & Support) / Re: [Mod] User upload limits
« on: November 21, 2011, 08:00:06 PM »
I assume you did the posted fix at first post, then the problem in that line, you missed some part of it.

83
Mods & Plugins (Releases & Support) / Re: [Mod] User upload limits
« on: November 21, 2011, 02:29:42 PM »
Welcome to 4images forum.

I'd suspect when you edited .php files you added an extra space or new line after ?> or before <?php
Check lang/<your language>/main.php (and all others)

84
Ok, let me rephrase the question:
What PHP version works and what version doesn't work?

85
Can't really suggest anything other then try apply all patches for you 4images version, perhaps one of them will cure the problem.

P.S.
What are the PHP versions you are using?

86
Did you apply every hotfix for your 4images version?

Also, I suspect both php version have their own set of settings so if you have access to boith php.ini files you could compare them and see what setting is different in new version.

87
perhaps conflict with other mod(s)? just exclude the functions from this code.

P.S. just for your future reference, when you referring to a code or other reply, make sure you provide a link to it. Also, when posting an error message, make sure you quote it exactly as it showed (you can change paths if you wish), complete message is more useful then "something like".

88
looks like you've installed this mod before...

89
just remove the fixname function from my code (make sure you match { and } brackets)

90
Discussion & Troubleshooting / Re: IPTC and Exif are not displayed
« on: November 14, 2011, 06:51:57 PM »
or try ImageMagick if your host supports it.

Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 741