Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
bcubic
Topic Author
Posts: 2
Joined: 26 Sep 2020, 03:18

Error with config.php file

26 Sep 2020, 03:55

Hi!
I'm triying to use the config.php file inside the /_files/config/ folder but i'm getting this error:
Code
Parse error: syntax error, unexpected ' ' (T_STRING), expecting ')' in /home/*****/********.net/fls/_files/config/config.php on line 6
The contest of config.php files is:
Code
<?php 

// Uncomment the parameters you want to edit.
return array (
  //'root' => '',
  //'start_path' => false,
  'username' => 'test',
  'password' => '*****password*here*****',
  //'load_images' => true,
  //'load_files_proxy_php' => false,
  //'load_images_max_filesize' => 1000000,
  //'load_svg_max_filesize' => 100000,
  //'image_resize_enabled' => true,
  //'image_resize_cache' => true,
  //'image_resize_dimensions' => 320,
  //'image_resize_dimensions_retina' => 480,
  //'image_resize_quality' => 85,
  //'image_resize_function' => 'imagecopyresampled',
  //'image_resize_sharpen' => true,
  //'image_resize_memory_limit' => 128,
  //'image_resize_max_pixels' => 30000000,
  //'image_resize_min_ratio' => 1.5,
  //'image_resize_cache_direct' => false,
  //'menu_enabled' => true,
  //'menu_show' => true,
  //'menu_max_depth' => 5,
  //'menu_sort' => 'name_asc',
  //'menu_cache_validate' => true,
  //'menu_load_all' => false,
  //'menu_recursive_symlinks' => true,
  //'layout' => 'rows',
  //'image_cover' => true,
  //'sort' => 'name_asc',
  //'sort_dirs_first' => true,
  //'cache' => true,
  //'cache_key' => 0,
  //'storage_path' => '_files',
  //'files_exclude' => '',
  //'dirs_exclude' => '',
  //'allow_symlinks' => true,
  //'history' => true,
  //'breadcrumbs' => true,
  //'transitions' => true,
  //'click' => 'popup',
  //'code_max_load' => 100000,
  //'code_allow_edit' => false,
  //'popup_interval' => 5000,
  //'topbar_sticky' => 'scroll',
  //'check_updates' => true,
  //'allow_tasks' => true,
  //'get_mime_type' => false,
  //'context_menu' => true,
  //'prevent_right_click' => false,
  //'license_key' => '',
);
Can you help me please?

Many thanks
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Error with config.php file

26 Sep 2020, 13:53

I copied the code from your post, and it worked fine here. Do you have a link so I can check? Or can you send me the actual config.php file as an attachment? It looks as if there is some tiny mistake in the config syntax.
bcubic wrote:
Code
Parse error: syntax error, unexpected ' ' (T_STRING), expecting ')' in /home/*****/********.net/fls/_files/config/config.php on line 6
It looks like there might be some unsupported character where 'username' starts or where the previous line ends. Try to write it again, and remove empty spaces perhaps?

In a future release, it will be possible to save settings directly from the interface.
 
User avatar
bcubic
Topic Author
Posts: 2
Joined: 26 Sep 2020, 03:18

Re: Error with config.php file

26 Sep 2020, 14:02

mjau-mjau wrote:It looks like there might be some unsupported character where 'username' starts or where the previous line ends. Try to write it again, and remove empty spaces perhaps?
I have eliminated the empty spaces in front of each line and it has worked perfectly.

Many thanks