NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] E_USER_WARNING Smarty error


Joined: 19 Dec 2007
Posts: 6
Location: Aruba
Reply with quote
I am getting an error while debugging. I am using Smarty, and when I start a page it pops up an error message

E_USER_WARNING Smarty error, cannot access property ""

In the log I see
Dbg mapping Failed to find a way to load "/usr/local/lib/php/Smarty/libs/Smarty.class.php" remote file. Opening it using debugger protocol 3:44:25 PM

Any suggestions on how to solve this?
View user's profileFind all posts by caribmediaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Please read PhpED manual. Related topic is "Managing workspaces, projects and files" -> "Project mapping"

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Smarty Error while debugging


Joined: 19 Dec 2007
Posts: 6
Location: Aruba
Reply with quote
dmitri wrote:
Please read PhpED manual. Related topic is "Managing workspaces, projects and files" -> "Project mapping"


I read it. Also I made a mapping. However this doesn't seem to help. I did the following
- made a symbolic link in my www folder using "ln -s /usr/local/lib/php libphp'
- made a mapping using
Project > Project Properties > Mapping
remote dir = /usr/local/lib/php
local directory = G:\www\libphp
url = http://ourserver/libphp

But the error still appears. I think the mapping settings are incorrect. The /usr/local/lib/php directory is of course not available directly from the www folder
View user's profileFind all posts by caribmediaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Symbolic links may not help there. Apache always reads them and uses real path.
Try to echo __FILE__ to see how php (and debugger) see the name.
if it is /usr/local/lib/php/Smarty/libs/Smarty.class.php, you're okay.

With your settings IDE will map
/usr/local/lib/php/Smarty/libs/Smarty.class.php
to
G:\www\libphp\Smarty\libs\Smarty.class.php
so, please check if this file exists.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 19 Dec 2007
Posts: 6
Location: Aruba
Reply with quote
dmitri wrote:
Symbolic links may not help there. Apache always reads them and uses real path.
...so, please check if this file exists.


I checked and the file exists. I found out the error I saw 'E_USER_WARNING cannot read property "" at line 1095' was caused by an invalid Smarty variable name. Strangely enough when in normal run mode this is not a problem, but while debugging the debugger stops on this line.

I must say this is very helpful to debug Smarty variables. Otherwise I would probably never have caught this mistake (it was in the title attribute of a link, so not directly visible on the page).

The symbolic links do work then. I don't know if it made any difference but I put my /usr/local/lib mapping as the first (as it is in the include path).

Thanks!
View user's profileFind all posts by caribmediaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
Dbg mapping Failed to find a way to load

This can be resolved with Dbg-Wizard script. Please give it a try. If after that you still don't get a solution, please contact NuSphere Support team and provide: phpinfo() output, screenshot of the error box (log entry) and screenshots of the all pages in the Project Properties dialog.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 19 Dec 2007
Posts: 6
Location: Aruba
Reply with quote
dmitri wrote:
Quote:
Dbg mapping Failed to find a way to load

This can be resolved with Dbg-Wizard script. Please give it a try. ...


I did and it's already working. I though I made it clear... All that was left was a Smarty error that I also resolved (it was a logic error in my template).

Thanks again
Michiel
View user's profileFind all posts by caribmediaSend private message
[resolved] E_USER_WARNING Smarty error
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic