Author:
creativedutchmen
Version:
1.2
Released:
12 October 2009
Category:
Other

Closed#1: Empty delimiter PHP warning error when you try to access a page where a param value does not exist

I’m getting this error when I’m entering a url param value that doesn’t exist, it should just give me a blank page, but instead, it gives me this Symphony warning error…

strpos(): Empty delimiter
    /Users/site/public_html/pcpcmissions.local/extensions/root_page_params/extension.driver.php line 71

    66                  
    67                  $params = $context['page'];
    68                  
    69                  if($this->_Parent->Configuration->get('map_sub_to_front', 'maptofront') == 'no'){
    70                      $tmp = substr($indexHandle,0, strrpos($indexHandle, '/'));
    71                      $params = substr($context['page'], strpos($context['page'], $tmp)+strlen($tmp));
    72                  }
    73                  //die($params);
    74                  
    75                  $context['page'] = $indexHandle.$params;

NOTE: OK, the above happens when I don’t check “Map subpages to home page”. When I check “Map subpages to home page”, this error DOES NOT appear.

Can you please post the url’s you had the problem with?

Huib, I just installed the extension (on 2.1.1) and get the same error.

My setup is as follows:

  • I have a Page ‘Miscelanneous’ (/misc/) that has possible Contentpages (Entries)
  • So $root/a-page-title should work (internally this title should be picked up by /misc/

This only seems to work if I check Map supages to home page.

This setting is a bit confusing to me since I’m not dealing with subpages (imho): I only retreive a Contentpage Entry which has a parent field set to a Symphony Page ('misc').

It works fine when the checkbox is checked, but when unchecked I get the same error as bzerangue

Huib, I just installed the extension (on 2.1.1) and get the same error.

My setup is as follows:

  • I have a Page ‘Miscelanneous’ (/misc/) that has possible Contentpages (Entries)
  • So $root/a-page-title should work (internally this title should be picked up by /misc/

This only seems to work if I check Map supages to home page.

This setting is a bit confusing to me since I’m not dealing with subpages (imho): I only retreive a Contentpage Entry which has a parent field set to a Symphony Page ('misc').

It works fine when the checkbox is checked, but when unchecked I get the same error as bzerangue

Whoops. Somehow the page got refreshed and re-submitted my response. Excuses.

Also, When trying to Edit my duplicate response I got a ‘Prohibited’ error :-/

I have the same problem with version 2.0.8 and after updating also with version 2.1.1.
Is there already a fix for this problem?

This commit should fix it.

This issue is closed.

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