We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Questions regarding images and dev mode | Forum

Outperformer 3000
Outperformer 3000 May 25 '16
Hi dears,

I have 2 questions:
(sorry for my bad english)

1) How can I block posibility to download images with right mouse click (save image as ...)

2) When I put dev mode to "true", always my site get down with "internal server error ...". When I put it to "false" again, and start side after some minutes everything works fine. What is the problem there?

Info: I use php 5.5 and oxwall 1.8.3

Thanks, greeting from Germany.
dave Leader
dave May 25 '16


1.  see here, http://stackoverflow.com/...-images-using-jquery


try adding that to your head section in the admin area.  Untested but it might work


Also you might think about using watermarks on photos, people will not want to save images that have watermarks on them. 


2. Do you have debug mode and dev mode on at the same time?  You can only have one on at any time. 


The Forum post is edited by dave May 25 '16
Outperformer 3000
Outperformer 3000 May 25 '16
Thanks, one of them works fine, with alert. Great.

If I put dev mode on true (debug mode is on false), I get 500 Internal Server Error:
Internal Server Error

"The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, service@webmailer.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."


If I put it on "false", everything works fine.

I don't know. Seems I have to ask my host to activate error log.


dave Leader
dave May 25 '16
you need to check the server log to see exactly what it says.  


Go to your domain dir and go into the folder ow_log  then inside there you will see a error log, its just a text file.  open it up and if it contains anything just highlight it all and delete it then save it. We do this so we can start from scratch, we dont need errors from last week. 


Then recreate the error again and check the log, post what it says please but remove your server username from the message. We pretty much just need the error part 

ross Team
ross May 26 '16
ow_log folder shows only software errors. 

you need to locate error_log file which is in the root of the software or level above, it will show you the sever errors related to the time you got the error. 

So please locate that error log file and provide us with the error or you can contact your hosting provider to assist you with that. 

applying the code for disabling right click can affect the proper functionality of the site, just to let you know. 

The Forum post is edited by ross May 30 '16
Outperformer 3000
Outperformer 3000 May 26 '16
I found the error_log file. Last entrys were:
[ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:55:34 2016] [ow_core_log] [Notice] Message: Undefined index: checkUpdatesUrl File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:55:34 2016] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:56:19 2016] [ow_core_log] [Notice] Message: Undefined index: checkUpdatesUrl File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:56:19 2016] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:56:33 2016] [ow_core_log] [Notice] Message: Undefined index: checkUpdatesUrl File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:56:33 2016] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:58:17 2016] [ow_core_log] [Notice] Message: Undefined index: checkUpdatesUrl File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 14:58:17 2016] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136


I found cronerror-file too. Last entrys:

Line:108
[Sun Apr 24 23:25:18 2016] [ow_core_log] [Exception] Message: Invalid argument `$content` File: /home/mysite/public_html/ow_system_plugins/base/classes/mail.php Line:137 Trace: [#0 /home/mysite/public_html/ow_system_plugins/base/bol/storage_service.php(578): BASE_CLASS_Mail->setTextContent('') | #1 /home/mysite/public_html/ow_system_plugins/base/bol/storage_service.php(549): BOL_StorageService->notifyAdminAboutInvalidItems(Array) | #2 /home/mysite/public_html/ow_system_plugins/base/bol/storage_service.php(184): BOL_StorageService->updateItemsLicenseStatus(Array) | #3 /home/senamor/public_html/ow_system_plugins/base/cron.php(101): BOL_StorageService->checkUpdates() | #4 /home/mysite/public_html/ow_cron/run.php(128): BASE_Cron->checkPluginUpdates() | #5 {main}]
[Mon Apr 25 23:25:17 2016] [ow_core_log] [Notice] Message: Undefined index: REQUEST_URI File: /home/mysite/public_html/ow_core/ow.php Line:108
[Mon Apr 25 23:25:18 2016] [ow_core_log] [Exception] Message: Invalid argument `$content` File: /home/mysite/public_html/ow_system_plugins/base/classes/mail.php Line:137 Trace: [#0 /home/mysite/public_html/ow_system_plugins/base/bol/storage_service.php(578): BASE_CLASS_Mail->setTextContent('') | #1 /home/mysite/public_html/ow_system_plugins/base/bol/storage_service.php(549): BOL_StorageService->notifyAdminAboutInvalidItems(Array) | #2 /home/mysite/public_html/ow_system_plugins/base/bol/storage_service.php(184): BOL_StorageService->updateItemsLicenseStatus(Array) | #3 /home/mysite/public_html/ow_system_plugins/base/cron.php(101): BOL_StorageService->checkUpdates() | #4 /home/mysite/public_html/ow_cron/run.php(128): BASE_Cron->checkPluginUpdates() | #5 {main}]
[Thu Apr 28 20:42:22 2016] [ow_core_log] [Warning] Message: Cannot modify header information - headers already sent by (output started at /mnt/webt/e0/03/54420603/htdocs/public_html/ow_cron/run.php:3) File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_system_plugins/base/bol/language_service.php Line:622
[Thu Apr 28 20:42:22 2016] [ow_core_log] [Exception] Message: Invalid argument `$content` File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_system_plugins/base/classes/mail.php Line:137 Trace: [#0 /mnt/webt/e0/03/54420603/htdocs/public_html/ow_system_plugins/base/bol/storage_service.php(578): BASE_CLASS_Mail->setTextContent('') | #1 /mnt/webt/e0/03/54420603/htdocs/public_html/ow_system_plugins/base/bol/storage_service.php(549): BOL_StorageService->notifyAdminAboutInvalidItems(Array) | #2 /mnt/webt/e0/03/54420603/htdocs/public_html/ow_system_plugins/base/bol/storage_service.php(184): BOL_StorageService->updateItemsLicenseStatus(Array) | #3 /mnt/webt/e0/03/54420603/htdocs/public_html/ow_system_plugins/base/cron.php(101): BOL_StorageService->checkUpdates() | #4 /mnt/webt/e0/03/54420603/htdocs/public_html/ow_cron/run.php(130): BASE_Cron->checkPluginUpdates() | #5 {main}]


Thanks for help.
The Forum post is edited by Outperformer 3000 May 26 '16
dave Leader
dave May 26 '16
In the cron file there is nothing we can do about the entries back in april (which is all of them it looks like) so you might as well just get rid of those, as long as there is nothing new in there you are OK.  Just clear that file out and save it so it is empty, that way you can keep track of it if there is anything new. 



As per the error_log file, just make sure your recursive permissions are correct on your folders 


make sure you have 777 recursive permissions on the following folders: 

ow_smarty/template_c

ow_static

ow_pluginfiles

ow_userfiles

ow_log


IMPORTANT: permissions should be set recursively. 



and then either use the free cache cleaner


 https://developers.oxwall.com/store/item/579


to clear your cache with dev mode OFF  or turn dev mode ON and refresh your site and then turn dev mode back OFF 


and you can probably delete that error_log file as well, the system will create another one if there is any problem, or just clean it out if you want.

The Forum post is edited by dave May 26 '16
Outperformer 3000
Outperformer 3000 May 26 '16
Thanks Dave for reply.

All 5 folders are set to 777.

But when I put dev to "true" site gets internal server error.

Error log:

Thu May 26 23:57:41 2016] [ow_core_log] [Notice] Message: Undefined index: checkUpdatesUrl File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 23:57:41 2016] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 23:59:52 2016] [ow_core_log] [Notice] Message: Undefined index: checkUpdatesUrl File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Thu May 26 23:59:52 2016] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136

dave Leader
dave May 26 '16
ok leave dev mode OFF, make sure you never have dev mode and debug mode on at the same time... turn them both off and then get this plugin and run it


https://developers.oxwall.com/store/item/579


Please let is know if that resolves the issue. 



The Forum post is edited by dave May 26 '16
Outperformer 3000
Outperformer 3000 May 26 '16
If I use the plugin and go to save site goes down, after 2, 3 minutes, cursor rotates. But I think, then comes error: network exceeded (or similar) - not internal server error.
dave Leader
dave May 26 '16
have you tried removing the special code you used to block the right click
Outperformer 3000
Outperformer 3000 May 27 '16
Same problem if I delete code for block right click.

Do you think my host can do anything?


dave Leader
dave May 27 '16
give me a min please im doing some searching 
dave Leader
dave May 27 '16
i did find an old thread that you might have a peek at, 


https://developers.oxwall.com/forum/topic/11884


basically this part 


1. Enable DEV MODE
2. Enable DEBUG mode
After enabling, try to register as a new user, any errors instead of blank screen? 

3. Check your server's error logs?  Anything related to join page's URL?



its worth a try

Outperformer 3000
Outperformer 3000 May 27 '16
Same:

/mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Fri May 27 18:25:02 2016] [ow_core_log] [Notice] Message: Undefined index: checkUpdatesUrl File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136
[Fri May 27 18:25:02 2016] [ow_core_log] [Notice] Message: Trying to get property of non-object File: /mnt/webt/e0/03/54420603/htdocs/public_html/ow_smarty/template_c/684da612131ed5b3ecf436d7146e0d9a16d58d25_0.file.admin.html.php Line:136

dave Leader
dave May 27 '16
Well the good news is that they are notices not fatal errors, so the site should run fine as it is.  Ross will have a better idea when he gets back.  So just let it go for now, you will be OK, and see what he has to say.
ross Team
ross May 30 '16
Ourperformer, you need at first resolve you 500 internal server error, I believe it is related to the notices you get. 

Contact your hosting provider as it is server related issue. Let's see what they say about it. 

ross Team
ross May 30 '16
Topic was moved from General Questions.
Outperformer 3000
Outperformer 3000 May 30 '16
Thank you Ross and Dave.

I have another idea. My site was bought from Skadate and I move from Arvixe to a German host. Maybe there went something wrong with the license or similar.

The debug notices are point on folder "ow_smarty"/"template_c". What is in it?

In Oxwall debug says:
Undefinied index: checkUpdatesUrl
and
Trying to get property of non-object

Well, I wrote to Skadate, maybe they can help. If not, I ask my host.

I let you know.

Greetings

dave Leader
dave May 30 '16
Yes thank you Op3000  i hope you get it sorted, it will be up to skadate to assist you from this point as we do not provide support for skadata sites. It is Oxwalls agreement with them that their users use their support.  


Good luck with your issue :)

Pages: 1 2 »