-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
namespace #1
Comments
Hi, can you please show the code that generated this error? |
Also, make sure you don't have a class in your application named "Namespace". |
this code on my pc works , but production is not the only difference is that my pc using php 7 and production php 5.4 |
The above code doesn't call the BrowserEvent class. The error may be in the adminAction class or in when you link javascript events to your UI elements. |
adminActions.php |
the strange thing is that in my computer run but on the server check that error. |
same problem with xajax https://openclassrooms.com/forum/sujet/xajax-erreur-a-la-creation-d-une-instance-xajax-81341 solution detail in this post is use another version. |
The solution is to use another version of what? PHP or Xajax? It seems to me that this issue is related to PHP rather than Jaxon. I see no reason why the BrowserEvent class is called in your code. If you're using a caching system such as Xcache, try flushing or disabling it. |
Solution is upload file in binary mode not in ASCII. |
PHP Parse error: syntax error, unexpected 'namespace' (T_NAMESPACE) in /public_html/inc/vendor/jaxon-php/jaxon-core/src/Request/Plugin/BrowserEvent.php on line 1
This error occurs , I think it is the version of php so change 5.4 to 5.6 and continues to error.
The text was updated successfully, but these errors were encountered: