[resolved] E_USER_WARNING Smarty error |
Site Admin
|
Please read PhpED manual. Related topic is "Managing workspaces, projects and files" -> "Project mapping"
|
||||||||||||
_________________ The PHP IDE team |
Smarty Error while debugging |
|
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 |
||||||||||||||
|
Site Admin
|
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 |
|
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! |
||||||||||||||
|
Site Admin
|
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 |
|
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 |
||||||||||||||||
|
[resolved] E_USER_WARNING Smarty error |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by