Skip to main content
Topic: Parse error: syntax error, unexpected 'define' (T_STRING) i (Read 7248 times) previous topic - next topic

Parse error: syntax error, unexpected 'define' (T_STRING) i

Im heaving the same problem described in topic:

https://forum.radsystems.io/index.php?topic=124.0

The error message is:

Parse error: syntax error, unexpected 'define' (T_STRING) in C:\Program Files\NetMake\v9\wwwroot\phprad\config.php on line 53

and my config PHP is :

Code: [Select]
	__cloudinaryconfig

// Application Page Settings
define("DEFAULT_PAGE","index"); //Default Controller Class
define("DEFAULT_PAGE_ACTION","index"); //Default Controller Action

define('DEFAULT_LAYOUT',LAYOUTS_DIR . 'main_layout.php');
define('HOME_PAGE','__defaultpage');
define("DEFAULT_LANGUAGE","__defaultlanguage"); //Default Language



This problem is OK ? made i some mistake ?

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #1
Someone ?

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #2
Hi,

Please can you republish your project in another directory and see if that will solve the problem.
Also if can share the steps you took in getting the problem., it will help us to understand and fix the problem.

Thanks for your support.

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #3
HI All

I fixed this first error ... but I noticed several errors to follow ...

Come on ...

I was then able to run the application (phprad menu.png).

It was then that I noticed that the suggested Application Paths in the menus do not point correctly to the folder (phprad right path.PNG).

So when I corrected the path in hand, I realized that the generated page also has problems (error on page.PNG).

Honestly the tool is not good and I would like to return it and get my money back.



Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #4
good, so I see the company that produces this tool is not caring about the opinions and claims of who paid for your product.

 They leave us talking to themselves.

 They should at least justify themselves in front of a post like these.  Or give some satisfaction ...

 

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #5

This problem did not occur because of the directory. So much so that the first stage has run but we have MANY problems here. I bought the tool, I will be without support?

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #6

Please connect with us via Skype (PHPRad Support) for express support on this issue.

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #7
Hi all,
same problem here...

Any news about how to solve/bypass it?

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #8
This error occurs with PHPRad Studio Classic in version 2.6.4. Solution: enable the "allow users to register" option in the "Authentication" Tab. Bug detected  ;)

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #9
Good to see this still has not been fixed. Using VUE JS version and nothing is getting save to config.php.

I  have to comment out all these lines:

// __userdefinedid
   // __userdefinedusername
   // __userdefinedemail
   // __userdefinedphoto
   // __userdefinedrole
// __cloudinaryconfig

Then I get Fatal error: Uncaught Error: Class 'IndexController' not found.

Sucks too, because I really wanted to buy this, but I have spent way to long trying to figure this out. No way am I going to buy this if it is that buggy.

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #10
@mhartwig‍ please use the classic version as the Vue version has been confirmed to have some bugs and it is way behind the classic version in features.

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #11
hi,

anyone found the problem, i get same error

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #12
I’d wait for the new release due this month before carrying in or starting anything new

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #13
This problem still exists

Re: Parse error: syntax error, unexpected 'define' (T_STRING) i

Reply #14
Is PHPRAD Alive or do we need to look for alternatives? SO many bugs, cmon!