Advanced search  


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.

Pages: [1]   Go Down

Author Topic: CPMfetch call problem: autoformatting/breaking by open source editors - help pls  (Read 2430 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 4

In my index.php code  ( I have cpmfetch call in canonical form:
Code: [Select]
<?php include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_close(); ?>

So far I've been editing using Kompozer and it worked, but as this editor is causing some annoyances, I decided to try alternatives.
It appeared however that both BlueGriffon and SeaMonkey treat that block in 'specific' way: immediately upon opening the file, the code is formatted to:

Code: [Select]
<!--?php include_once "./galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
$objCpm--->cpm_viewLastAddedMedia(4, 7);
$objCpm-&gt;cpm_close(); ?&gt;

I've found some references to the issue, but nobody seemed to mentioned it here, so my question:
is there something wrong with the code (or its use), or what (simple) editor is appropriate for the job?

Many thanks



  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886

notepad++ should do the trick.
It is a mistake to think you can solve any major problems just with potatoes.


  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery

The code is of course fine, your editor doesn't like PHP - and from the board you provided the link to - seems they have no desire to...

I've used HAPEdit for almost a decade now: - HTML ASP PHP Editor.
Doesn't seem to have much support left - no upgrades in a while - but I've used the same version with WinXP, WinMe, WinVista, and Win7.  Some newer PHP functions it doesn't give hints for - but still works well.
The only replacements it makes automatically on document opening is replacing tabs with spaces. Never caused me an issue.

I will be downloading Phil's suggestion of Notepad ++ and comparing when I can.
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money


  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Pages: [1]   Go Up

Page created in 0.018 seconds with 19 queries.