Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: SEF URLs for cpg1.6.x  (Read 3750 times)

0 Members and 1 Guest are viewing this topic.

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 808
    • Timos-Welt
SEF URLs for cpg1.6.x
« on: November 08, 2019, 04:36:06 pm »

Makes SEF URLs for index, thumbnails, and displayimage.php. (Apache webserver only!)
Warning: this plugin is still experimental, there are known issues when using it. Test thoroughly and use at your own risk.
When getting unexpected results, disable the plugin and remove the .htaccess file the plugin creates manually (using your FTP app).

German/french/spanish/italian localisation:
!!!DANGER! Only do this if you know exactly what you are doing!!!!

To change english short URLs to german/french/spanish/italian SEF URLs, first uninstall the plugin. Then open codebase.php and find this line (it's twice in there):
$sef_language = 'english';
and change both lines to
$sef_language = 'german'; or $sef_language = 'french'; or $sef_language = 'spanish'; or $sef_language = 'italian';
Then install plugin again and overwrite existing .htaccess.

Please note that french and spanish support are experimental.
Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: SEF URLs for cpg1.6.x
« Reply #1 on: April 14, 2021, 02:44:21 am »

Hello I recently noticed that using this plugin causes a 500 error, I have always used a SEF plugin and the site is quite old being 14 years online so google has many links directed to these SEF urls, so turning off the plugin would break all those links which people find the site through.

If I'm logged in, I can seem to view the gallery fine but if I'm not logged in it gives me a 500 error. I only have two plugins installed and been able to determine that is the SEF plugin causing it. In the known issues notes it says custom thumbnails causes issues but that is not the other plugin I use. I can have SEF as the only plugin installed and will do this.

I have tried to uninstall the plugin, delete the htaccess file and reinstall but still gives me the same error. The main gallery page works fine it when you try to view a album that using SEF that get the 500 error.

Site link
http://www.beautifuljodelle.com/gallery/

http://www.beautifuljodelle.com/gallery/displayimage-14682-_Jodelle_Ferland_Dark_Matter_S02_E07_BJ_027_jpg_.html
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1732
Re: SEF URLs for cpg1.6.x
« Reply #2 on: April 14, 2021, 07:18:06 am »

The problem is with your theme. It is not compatible with CPG 1.6.x

You will need to make changes to it:
https://forum.coppermine-gallery.net/index.php/topic,79754.msg386528.html#msg386528

... or use a different theme.
Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: SEF URLs for cpg1.6.x
« Reply #3 on: April 14, 2021, 10:01:16 pm »

The problem is with your theme. It is not compatible with CPG 1.6.x

You will need to make changes to it:
https://forum.coppermine-gallery.net/index.php/topic,79754.msg386528.html#msg386528

... or use a different theme.

Thank You that solved the problem.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 23 queries.