Search

Hi,

I play a bit around with Symphony and it seems to be the right for my project. So now after the installation is done everything is working fine except for "Data Sources" - I get this error message everytime... somebody here who can help me?

    Warning: Call-time pass-by-reference has been deprecated in /mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/content/content.blueprintsdatasources.php on line 839

Warning: Call-time pass-by-reference has been deprecated in /mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/content/content.blueprintsdatasources.php on line 1039

Warning: Call-time pass-by-reference has been deprecated in /mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/content/content.blueprintsdatasources.php on line 1039

    Symphony Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/content/content.blueprintsdatasources.php:839)

    An error occurred in /mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/lib/toolkit/class.page.php around line 73
        68             foreach($this->_headers as $value){
        69                 if(isset($value['response_code'])) {
        70                     header($value['header'], true, $value['response_code']);
        71                 }
        72                 else {
        73                     header($value['header']);
        74                 }
        75             }
        76         }
        77     } 
    Backtrace
        [:0]
            GenericErrorHandler::handler();
        [/mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/lib/toolkit/class.page.php:73]
            header();
        [/mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/lib/toolkit/class.page.php:58]
            Page->__renderHeaders();
        [/mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/lib/toolkit/class.htmlpage.php:88]
            Page->generate();
        [/mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/lib/toolkit/class.administrationpage.php:512]
            HTMLPage->generate();
        [/mnt/web5/a1/91/52491191/htdocs/pc2go/symphony/lib/core/class.administration.php:395]
            AdministrationPage->generate();
        [/mnt/web5/a1/91/52491191/htdocs/pc2go/index.php:25]
            Administration->display();
    Database Query Log
        [0.0004] SET character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8';
        [0.0002] SET CHARACTER SET 'utf8';
        [0.0007] SELECT SQL_CACHE t1.name, t2.page, t2.delegate, t2.callback FROM `tab_extensions` as t1 INNER JOIN `tab_extensions_delegates` as t2 ON t1.id = t2.extension_id WHERE t1.status = 'enabled' ORDER BY t2.delegate, t1.name;
        [0.0004] SELECT SQL_CACHE `session_data` FROM `tab_sessions` WHERE `session` = 'qu2s9taa1chjlq781h61n1g5v4' LIMIT 1;
        [0.0003] SELECT SQL_CACHE `id` FROM `tab_authors` WHERE `username` = 'Admin' AND `password` = '8a3c6572badae73e2c534dbdbea4d9775016bbc7' LIMIT 1;
        [0.0004] UPDATE tab_authors SET `last_seen` = '2012-07-10 14:19:52' WHERE `id` = '1';
        [0.0004] SELECT SQL_CACHE * FROM `tab_authors` WHERE `id` IN (1);
        [0.0005] SELECT SQL_CACHE `name` FROM `tab_extensions` WHERE `status` = 'enabled';
        [0.0005] SELECT SQL_CACHE * FROM `tab_extensions`;
        [0.0004] SELECT SQL_CACHE `s`.* FROM `tab_sections` AS `s` ORDER BY `s`.`sortorder` asc;
        [0.0006] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "archive" OR `data_sources` REGEXP "^archive,|,archive,|,archive$" ORDER BY sortorder ASC;
        [0.0006] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "article" OR `data_sources` REGEXP "^article,|,article,|,article$" ORDER BY sortorder ASC;
        [0.0005] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "article_images" OR `data_sources` REGEXP "^article_images,|,article_images,|,article_images$" ORDER BY sortorder ASC;
        [0.0004] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "comments" OR `data_sources` REGEXP "^comments,|,comments,|,comments$" ORDER BY sortorder ASC;
        [0.0004] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "drafts" OR `data_sources` REGEXP "^drafts,|,drafts,|,drafts$" ORDER BY sortorder ASC;
        [0.0005] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "homepage_articles" OR `data_sources` REGEXP "^homepage_articles,|,homepage_articles,|,homepage_articles$" ORDER BY sortorder ASC;
        [0.0005] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "logged_in_author" OR `data_sources` REGEXP "^logged_in_author,|,logged_in_author,|,logged_in_author$" ORDER BY sortorder ASC;
        [0.0006] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "navigation" OR `data_sources` REGEXP "^navigation,|,navigation,|,navigation$" ORDER BY sortorder ASC;
        [0.0004] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "notes" OR `data_sources` REGEXP "^notes,|,notes,|,notes$" ORDER BY sortorder ASC;
        [0.0005] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "rss_articles" OR `data_sources` REGEXP "^rss_articles,|,rss_articles,|,rss_articles$" ORDER BY sortorder ASC;
        [0.0005] SELECT SQL_CACHE id,title FROM `tab_pages` AS p WHERE `data_sources` = "website_owner" OR `data_sources` REGEXP "^website_owner,|,website_owner,|,website_owner$" ORDER BY sortorder ASC;
        [0.0010] SELECT SQL_CACHE id FROM `tab_pages` AS p WHERE 1 ORDER BY sortorder ASC;
        [0.0003] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 64 OR p.handle = '64' LIMIT 1;
        [0.0003] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 69 OR p.handle = '69' LIMIT 1;
        [0.0002] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 70 OR p.handle = '70' LIMIT 1;
        [0.0003] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 68 OR p.handle = '68' LIMIT 1;
        [0.0002] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 66 OR p.handle = '66' LIMIT 1;
        [0.0003] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 67 OR p.handle = '67' LIMIT 1;
        [0.0003] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 75 OR p.handle = '75' LIMIT 1;
        [0.0003] SELECT SQL_CACHE p.title, p.parent FROM `tab_pages` AS p WHERE p.id = 76 OR p.handle = '76' LIMIT 1; ``

Turn off PHP warnings and you should be fine.

When using a version of PHP 5.2.x with Symphony 2.3 I had to enable Allow Call Time Pass Reference to get rid of a similar error message in the back end.

Ouch, looks like you're using an old version of PHP that Symphony doesn't like.

Works ok on PHP 5.2.6 if you do enable Allow Call Time Pass Reference, thought it might be useful to note if anyone's having to use an older version.

I use 5.3.x in general and of course Symphony 2.3 works fine out-of-the-box on that.

I'm getting this error currently when trying to view ElasticSearch Mappings (on localhost, MAMP) and I have been getting it alot recently on localhost. I am currently running PHP 5.5. I seem to be getting the same errors when I change to PHP 5.4 or PHP 5.3.

Symphony Warning:

Cannot modify header information - headers already sent by (output started at /Users/jdsimcoe/Sites/atheycreek/workspace/elasticsearch/mappings/teachings.php:1)

An error occurred in /Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.page.php around line 308

303 if($key == 'status' && isset($value['response_code'])) { 304 $res_code = intval($value['response_code']); 305 self::renderStatusCode($res_code); 306 } 307 else { 308 header($value['header']); 309 } 310 } 311 } 312 }

Backtrace

[:0] GenericErrorHandler::handler(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.page.php:308] header(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.page.php:274] Page->__renderHeaders(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.htmlpage.php:102] Page->generate(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.administrationpage.php:528] HTMLPage->generate(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/core/class.administration.php:468] AdministrationPage->generate(); [/Users/jdsimcoe/Sites/atheycreek/index.php:22] Administration->display();

Any ideas?

Here is a gist of the entire Error code.

Thanks for the help!

I solved the issue and posted about it here. Basically watch out for invisible characters at the beginning of files.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details