Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7951167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:28:49+00:00 2026-06-04T02:28:49+00:00

The undefined contant error is normally quite helpfull and easy to solve, but I

  • 0

The undefined contant error is normally quite helpfull and easy to solve, but I am getting some really weird behavior on both my development and production server (different setups).

My error logs shows tons of errors like this:

NOTICE (5): [8] Use of undefined constant   - assumed ' ' (#PATH#/dashboard/tasks.tpl) [61]

NOTICE (5): [8] Use of undefined constant   - assumed ' ' (#PATH#/index/view.tpl) [158]

NOTICE (5): [8] Use of undefined constant   - assumed ' ' (#PATH#/blogs/index.tpl) [51]

For me the system trying to define “blank” as a constant?

Often I can solve the error by following the linenumber where their always will be a PHP close tag like this <?php } ?> and by first removing the two spaces <?php}?> and adding them again I can sometime solve the problem. But new errors keeps popping up.

I use netbeans as IDE.

Here is the full stack trace

#0 #PATH#/docs/application/libraries/Zend/View.php(108): include('#PATH#/d...')
#1 #PATH#/docs/application/libraries/Zend/View/Abstract.php(835): Zend_View->_run('#PATH#/d...')
#2 #PATH#/docs/application/libraries/Engine/Content/Widget/Abstract.php(292): Zend_View_Abstract->render('application/modules/Blog/widgets...')
#3 #PATH#/docs/application/libraries/Engine/Content/Widget/Abstract.php(258): Engine_Content_Widget_Abstract->renderScript()
#4 #PATH#/docs/application/libraries/Engine/Content/Element/Widget.php(66): Engine_Content_Widget_Abstract->render()
#5 #PATH#/docs/application/libraries/Engine/Content/Element/Abstract.php(583): Engine_Content_Element_Widget->_render()
#6 #PATH#/docs/application/libraries/Engine/Content/Decorator/Children.php(31): Engine_Content_Element_Abstract->render()
#7 #PATH#/docs/application/libraries/Engine/Content/Element/Abstract.php(594): Engine_Content_Decorator_Children->render('')
#8 #PATH#/docs/application/libraries/Engine/View/Helper/Content.php(78): Engine_Content_Element_Abstract->render()
#9 #PATH#/docs/application/modules/Core/views/scripts/index/index.tpl(10): Engine_View_Helper_Content->renderWidget('blog.list-recent-blogs')
#10 #PATH#/docs/application/libraries/Zend/View.php(108): include('#PATH#/d...')
#11 #PATH#/docs/application/libraries/Zend/View/Abstract.php(835): Zend_View->_run('#PATH#/d...')
#12 #PATH#/docs/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(903): Zend_View_Abstract->render('index/index.tpl')
#13 #PATH#/docs/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(924): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/index.tpl', )
#14 #PATH#/docs/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(963): Zend_Controller_Action_Helper_ViewRenderer->render()
#15 #PATH#/docs/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#16 #PATH#/docs/application/libraries/Zend/Controller/Action.php(523): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#17 #PATH#/docs/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('indexAction')
#18 #PATH#/docs/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Zend_Controller_Request_Http, Zend_Controller_Response_Http)
#19 #PATH#/docs/application/modules/Core/Bootstrap.php(75): Zend_Controller_Front->dispatch()
#20 #PATH#/docs/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#21 #PATH#/docs/application/index.php(194): Engine_Application->run()
#22 #PATH#/docs/index.php(24): include('#PATH#/d...')
#23 {main}

Any suggestions on this behavior would be very much appreciated

Solution

Thank you for the feedback. By enabling non-printable characters in netbeans (view->non-printable Characters in the menubar) I was able to see the difference.

I copied a “bad” space and a curly bracket and made a search/replace in the total project to solve the problem quickly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:28:51+00:00Added an answer on June 4, 2026 at 2:28 am

    You have a non-breaking space in these lines.
    You can ask NetBeans to display it for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

undefined method 'key?' for nil:NilClass This is the error I am getting while going
I am getting JQUERY undefined error. Do you have any idea (code below). <%@
I'm getting an Undefined Instruction error while running an embedded system, no coprocessor, no
i got 'JQuery' is undefined error while browsing the page in IE 6 but
I'm getting undefined for some reason when I try to return the html via
I'm getting the following strange looking error. Unexpected PHP error [Use of undefined constant
I am getting an undefined method 'has_content?' error on an rspec controller_spec file. I
$c = new Criteria(); $c->addSelectColumn('MAX('.Moto::matricula.')'); But i get this error: Fatal error: Undefined class
Why am I getting the error PHP Fatal error: Call to undefined function imagettftext()
I'm getting the error Use of undefined constant NORMAL - assumed 'NORMAL' when running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.