Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Coppermine ⇒ modifyalb.php problem


modifyalb.php problem
Please post bugs in the Projects Module.
Post anything and everything else about Coppermine in this forum.

Go to page 1, 2, 3  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & BlocksCoppermine

View previous topic :: View next topic  
Author Message
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Tue May 24, 2011 6:44 pm
Post subject: modifyalb.php problem

Not sure when this started but suddenly my 'Update album' page no longer works. The button 'Update album' links to
Quote::
http://www.lasourcetranquille.com/'.getlink(
which obviously goes nowhere. I don't think I've changed any files - the code at line 390 of modifyalb.php (version 9.6) says

PHP:
        <tr><form method="post" action="'.getlink("&amp;file=db_input").'" enctype="multipart/form-data" accept-charset="utf-8">

I'm sure it used to work!


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
unigene
Gold Supporter
Gold Supporter

Offline Offline
Joined: Apr 07, 2005
Posts: 120
Location: Luxembourg
PostPosted: Tue May 24, 2011 8:11 pm
Post subject: Re: modifyalb.php problem

I guess you use IE9. Click the 'Compatibility View' button and everything will work again. I had the same issue.

_________________
| Luxembourg Amateur Radio RL | RC Heli | My Site |

unigene's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/ 2.6.18 / 5.1.52 / 5.3.2 / 9.3.2.0
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Tue May 24, 2011 10:20 pm
Post subject: Re: modifyalb.php problem

Ha! That simple. Any idea what M$ have done to break it? (and thank you!)


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Tue May 24, 2011 10:53 pm
Post subject: Re: modifyalb.php problem

the code is parsed by the server, not by browsers ... how weird.

are you sure that changing compatibility mode fixed the issue?


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Wed May 25, 2011 12:16 am
Post subject: Re: modifyalb.php problem

I was going to say absolutely - but I've just gone back to try it and it is now working without compatibility mode.. How bizarre is that? I had to view it with compatibility mode to get it to work, and now I don't need that mode.

Odd


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Wed May 25, 2011 6:11 am
Post subject: Re: modifyalb.php problem

rosbif wrote:
I was going to say absolutely - but I've just gone back to try it and it is now working without compatibility mode.. How bizarre is that? I had to view it with compatibility mode to get it to work, and now I don't need that mode.

Odd

Because the fully resolved link is now in your browser cache?

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Wed May 25, 2011 6:52 am
Post subject: Re: modifyalb.php problem

nope ... it's parsed by the server and saved into website/cache.tpl ... probably a glitch?


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Wed Jun 15, 2011 8:49 am
Post subject: Re: modifyalb.php problem

It is doing it again - like lb said I presume it gets the correct link from the cache, but when the correct link is not in the cache it comes up with an error. Clicking the compatibility link and it works again.


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Wed Jun 15, 2011 9:51 am
Post subject: Re: modifyalb.php problem

This is really bugging me. Sometimes it doesn't work with compatibility mode on either - I have to select it off, then on again, sometimes twice for it to work. Why could that be?


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Wed Jul 20, 2011 5:04 pm
Post subject: Re: modifyalb.php problem

Other files in coppermine seem to have the same problem in IE9 - this wierd getlink error. Would love to get to the bottom of it...


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Thu Jul 21, 2011 12:54 am
Post subject: Re: modifyalb.php problem

If you using older version of DragonflyCMS:
in modifyalb.php find a spot for:
PHP:
$cpgtpl->assign_var('U_DB_INPUT', getlink('& amp;file=db_input'));

in the template file change:
from
Code::
action="'.getlink("& amp;file=db_input").'" 
to
Code::
action="{U_DB_INPUT}"



instead if you using the most recent version of DragonflyCMS without any additional php code you simply change your template to read:
from
Code::
action="'.getlink("& amp;file=db_input").'"

to
Code::
action="U_('& amp;file=db_input')"

note: "& amp;" should be without any space, it does have one here for display only


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Thu Jul 21, 2011 10:10 am
Post subject: Re: modifyalb.php problem

Thanks Nano. Which template file are you referring to?


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Fri Jul 22, 2011 12:11 am
Post subject: Re: modifyalb.php problem

change /modules/coppermine/modifyalb.php start at line 377
from:
PHP:
<?php
# below starts line 377
$album_lb = alb_list_box();
$chset =_CHARSET;
echo
'
<tr>
<td colspan="2" class="tableh1">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="statlink"><h2>'
.UPDATE.'</h2></td>
<td align="right">'
.$album_lb.'</td>
</tr>
</table>
</td>
</tr>
<tr><form method="post" action="'
.getlink("&amp;file=db_input").'" enctype="multipart/form-data" accept-charset="utf-8">
<input type="hidden" name="event" value="album_update" />
<input type="hidden" name="aid" value="'
.$album.'" />

'
;
create_form($data);

to:
PHP:
<?php
# below starts line 377
$album_lb = alb_list_box();
$chset =_CHARSET;
$u_db_input = getlink('&amp;file=db_input');
echo
'
<tr>
<td colspan="2" class="tableh1">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="statlink"><h2>'
.UPDATE.'</h2></td>
<td align="right">'
.$album_lb.'</td>
</tr>
</table>
</td>
</tr>
<tr><form method="post" action="'
.$u_db_input.'" enctype="multipart/form-data" accept-charset="utf-8">
<input type="hidden" name="event" value="album_update" />
<input type="hidden" name="aid" value="'
.$album.'" />

'
;
create_form($data);

Thanks for thanking me in advance ?!
However this is a revised version of InspectorClueNo's idea since modifyalb.php does not use any templates yet, in any case thanks ClueNo.

rosbif, let us know if this helps.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Fri Jul 22, 2011 4:47 pm
Post subject: Re: modifyalb.php problem

Actually there is a template in rosbif's case - reDesign 3. But fixing in it in the code surely saves fixing in each and every template.

I guess we all need to apply this fix if we expect IE9 users?

So could either of you who explain what is going wrong here with IE9, please? (Or is it just a(nother) case of shuffling the code to avoid an unidentified PHP source code problem?)

TIA.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Sat Jul 23, 2011 8:54 am
Post subject: Re: modifyalb.php problem

Nano,

It doesn't make any difference. I thought perhaps I had to change the similar getlink at line 338 - so I edited this to:

PHP:

if ($db->sql_numrows($result)) {

$u_modifyalb = getlink('&amp;file=modifyalb,0,1');
$lb = '<form method="post" action="'.$u_modifyalb.'" enctype="multipart/form-data" accept-charset="utf-8"><input type="hidden" name="name" value="'.$module_name." />

This link works correctly (it's the change album link) with either the original getlink or the version above.

For the second button IE9 is still showing a link to ".com/'.getlink(".

The source shows (correctly)

Code::
        </tr>
        <tr><form method="post" action="coppermine/db_input.html" enctype="multipart/form-data" accept-charset="utf-8">

so it just appears to be IE9 interpreting it incorrectly.


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCoppermine
Page 1 of 3
All times are GMT
Go to page 1, 2, 3  Next



Jump to:  


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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

อ่านต่อ...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy