As it is the error? As it is the error?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

As it is the error?

Started by Piceo2k, August 28, 2007, 09:38:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Piceo2k

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


<?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


Nibbler


Piceo2k

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

Greetings,

Nibbler

remove the [ b ] and [ /b ]

Piceo2k


<?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: 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

Piceo2k

I have already solved it. Thank you very much.

Joachim Müller

For the benefit of others with simlar issues you should have posted what you actually did to solve your issue.