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: As it is the error?  (Read 5601 times)

0 Members and 1 Guest are viewing this topic.

Piceo2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
As it is the error?
« on: August 28, 2007, 09:38:13 pm »

I am using the 2,0 and the code is the following one:

Code: [Select]
<?php
  
include ".galeria/cpmfetch/cpmfetch.php";
  include 
"./Style.css";
  
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastUpdatedAlbumsFrom(4,4,2,array([b]imagelink => "album",[/b"imagestyle" => "test1"windowtarget => "_blank"));
  
$objCpm->cpm_close();
?>


Result: Parse error: syntax error, unexpected '[', expecting ')' in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 5

« Last Edit: August 29, 2007, 12:28:18 am by Nibbler »
Logged

Nibbler

  • Guest
Re: As it is the error?
« Reply #1 on: August 28, 2007, 09:39:27 pm »

Try removing the bbcode.
Logged

Piceo2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: As it is the error?
« Reply #2 on: August 28, 2007, 10:18:28 pm »

I do not understand that it is what I must clear.

Greetings,
Logged

Nibbler

  • Guest
Re: As it is the error?
« Reply #3 on: August 28, 2007, 11:43:56 pm »

remove the [ b ] and [ /b ]
Logged

Piceo2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: As it is the error?
« Reply #4 on: August 29, 2007, 12:16:27 am »

Code: [Select]
<?php
  
include ".galeria/cpmfetch/cpmfetch.php";
  include 
"./Style.css";
  
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastUpdatedAlbumsFrom(4,4,2,array(imagelink => "album""imagestyle" => "test1"windowtarget => "_blank"));
  
$objCpm->cpm_close();
?>


Error:
Code: [Select]
Warning: main(.galeria/cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 2

Warning: main() [function.include]: Failed opening '.galeria/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 2

Warning: main() [function.main]: Unable to access ./Style.css in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Warning: main(./Style.css) [function.main]: failed to open stream: No such file or directory in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Warning: main() [function.include]: Failed opening './Style.css' for inclusion (include_path='.:/usr/local/lib/php') in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Fatal error: Cannot instantiate non-existent class: cpm in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 4
Logged

Piceo2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: As it is the error?
« Reply #5 on: August 29, 2007, 12:26:01 am »

I have already solved it. Thank you very much.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: As it is the error?
« Reply #6 on: September 06, 2007, 08:17:46 am »

For the benefit of others with simlar issues you should have posted what you actually did to solve your issue.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.