5

I'm planning to move to Zend Studio 9 and installed the trial version parallel to my Version 8. Now I loaded my old Workspace and my Zend Framework project didn't know anything about php.

For example if I try to extend an exception, it says: "Cannot extend from interface exception". Or 'file_get_contents' ends in: 'Call of undefined function.

So it seems no PHP definitions are loaded but how can I change that? In the Zend Studio 8 it still works.

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Johni
  • 2,933
  • 4
  • 28
  • 47
  • Right click the project folder. Click *Configure* and then *Add PHP Support*. If that doesnt fix it, try http://kb.zend.com/index.php?View=entry&EntryID=415 (yes, I know its for ZS7) – Gordon Nov 25 '11 at 17:14
  • Hmm, then try Project > Clean – Gordon Nov 25 '11 at 17:36
  • Yes, i tried that, too. Now event Zend Studio 8 has this problem. Strange. btw. when i create i new project is has the problem, too. – Johni Nov 25 '11 at 17:38
  • 1
    I assume this has something to do with the .build files as indicated the kb article. You could ask the official support at http://forums.zend.com/viewforum.php?f=59. Do you want me to put anything of the above or all as an answer? – Gordon Nov 25 '11 at 17:40
  • 1
    Are you sure this thread doesn't have the solution for you? http://stackoverflow.com/questions/1293762/how-to-enable-autocomplete-syntax-highlight-for-php-core-functions-in-eclipse – markdrake Feb 16 '12 at 16:08
  • Thanks, now it wordked. But not the popular answers in this thread. What actualy helped was to delete the database files in /.metadata/.plugins/org.eclipse.dltk.core – Johni Feb 17 '12 at 20:53

3 Answers3

1

I did the same, transfer workspace from Zend Studios 8 to Zend Studio 9. It worked fine on Ubuntu but it did not work Windows 7...

Anyway I highly recommend to start with a fresh workspace, to not bring over old settings from Zend Studios 8.

zzarbi
  • 1,832
  • 3
  • 15
  • 29
  • Yes thats what i planning to do after finishing my current project. The move to Zend Studio 9 isn't neccesary that badly. – Johni Dec 01 '11 at 00:33
  • Ok, no i had the time to test out this solution. I intalled the 7.0.1 trial and created a new Workspace. Then i copied a old project into the workspace (without project settings) and created a new php projet for this folder. This didn't solved the problem. – Johni Jan 10 '12 at 16:01
  • can you create a project from existing sources? instead of copying the project folder, create a new one using the sources from the old one – jere Jan 10 '12 at 16:06
  • You cannot copy a project like that, there are hidden files in the workspace it self that manages other settings for the workspace. – zzarbi Jan 11 '12 at 23:52
  • I removed all hidden Files in the project folder. – Johni Jan 16 '12 at 17:20
  • Thats the thing you cannot do that. Those files are needed to "setup" the project in Zend Studios – zzarbi Jan 20 '12 at 17:13
0

Try copying files of ZendFramework Files in Php folder.Also From Bin Folder of Zend Framework copy 2 Files zf batch files & zf script file in php folder.And Also include the path in php.ini file.

0

look into your .project file. Did you have a

<natures>
    <nature>org.eclipse.php.core.PHPNature</nature>
</natures>

section. If not add it.

jami
  • 190
  • 2
  • 14