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

Amazon Image upload problem and 500 error on customize "Main page" | Forum

Chris
Chris Dec 13 '15

Im having two issues here. I set up amazon s3 and now I cant upload any images, everytime I try its stuck in crop image, its in a loop. and when I cancel out of it has a blank thumnail and the newsfeed says "admin" uploaded a new image. Strange, seems something wasnt set up correctly. 

I followed this tutorial: http://kevquirk.com/blog/use-amazon-s3-oxwall/


Second issue im having is when i click on "Cutomize this page" on the "main index page" oit brings me to a 500 error. - Here is my error log:


[Sun Dec 13 0:07:44 2015] [ow_core_log] [Warning] Message: S3::putObject(): [InvalidAccessKeyId] The AWS Access Key Id you provided does not exist in our records. File: /home/prknet/public_html/ow_libraries/amazonS3/S3.php Line:356 [Sun Dec 13 0:07:44 2015] [ow_core_log] [Warning] Message: S3::getObjectInfo({bucket_name}, ow_userfiles/themes/simplicity566cfd201ea43.css): [403] Unexpected HTTP status File: /home/prknet/public_html/ow_libraries/amazonS3/S3.php Line:356 [Sun Dec 13 0:07:44 2015] [ow_core_log] [Warning] Message: S3::putObject(): [InvalidAccessKeyId] The AWS Access Key Id you provided does not exist in our records. File: /home/prknet/public_html/ow_libraries/amazonS3/S3.php Line:356 [Sun Dec 13 0:07:44 2015] [ow_core_log] [Warning] Message: S3::getObjectInfo({bucket_name}, ow_userfiles/themes/mobile_simplicity566cfd201ea43.css): [403] Unexpected HTTP status File: /home/prknet/public_html/ow_libraries/amazonS3/S3.php Line:356 [Sun Dec 13 13:26:04 2015] [ow_core_log] [Warning] Message: call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not found File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.php Line:67 [Sun Dec 13 13:26:29 2015] [ow_core_log] [Warning] Message: call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not found File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.php Line:67 [Sun Dec 13 13:26:29 2015] [ow_core_log] [Exception] Message: Class ADS_CMP_SidebarAds does not exist File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php Line:208 Trace: [#0 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(208): ReflectionClass->__construct('ADS_CMP_Sidebar...') | #1 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(92): BASE_CMP_DragAndDropItem->checkComponent('ADS_CMP_Sidebar...') | #2 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_frontend_panel.php(106): BASE_CMP_DragAndDropItem->setContentComponentClass('ADS_CMP_Sidebar...') | #3 /home/prknet/public_html/ow_smarty/template_c/06bad7da6664aaf9e309c4185c1585accd992687.file.drag_and_drop_index_customize.html.php(123): BASE_CMP_DragAndDropFrontendPanel->tplComponent(Array, Object(Smarty_Internal_Template)) | #4 /home/prknet/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_566db8552a7911_34375275(Object(Smarty_Internal_Template)) | #5 /home/prknet/public_html/ow_core/view_renderer.php(101): Smarty_Internal_TemplateBase->fetch('/home/prknet/pu...') | #6 /home/prknet/public_html/ow_core/renderable.php(271): OW_ViewRenderer->renderTemplate('/home/prknet/pu...') | #7 /home/prknet/public_html/ow_core/component.php(80): OW_Renderable->render() | #8 /home/prknet/public_html/ow_core/renderable.php(258): OW_Component->render() | #9 /home/prknet/public_html/ow_system_plugins/base/controllers/component_panel.php(56): OW_Renderable->render() | #10 /home/prknet/public_html/ow_core/request_handler.php(274): BASE_CTRL_ComponentPanel->render() | #11 /home/prknet/public_html/ow_core/application.php(342): OW_RequestHandler->dispatch() | #12 /home/prknet/public_html/index.php(76): OW_Application->handleRequest() | #13 {main}] [Sun Dec 13 13:26:36 2015] [ow_core_log] [Warning] Message: call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not found File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.php Line:67 [Sun Dec 13 13:27:41 2015] [ow_core_log] [Warning] Message: call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not found File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.php Line:67 [Sun Dec 13 13:30:35 2015] [ow_core_log] [Warning] Message: call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not found File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.php Line:67 [Sun Dec 13 13:30:44 2015] [ow_core_log] [Warning] Message: call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not found File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.php Line:67 [Sun Dec 13 13:30:44 2015] [ow_core_log] [Exception] Message: Class ADS_CMP_SidebarAds does not exist File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php Line:208 Trace: [#0 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(208): ReflectionClass->__construct('ADS_CMP_Sidebar...') | #1 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(92): BASE_CMP_DragAndDropItem->checkComponent('ADS_CMP_Sidebar...') | #2 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_frontend_panel.php(106): BASE_CMP_DragAndDropItem->setContentComponentClass('ADS_CMP_Sidebar...') | #3 /home/prknet/public_html/ow_smarty/template_c/06bad7da6664aaf9e309c4185c1585accd992687.file.drag_and_drop_index_customize.html.php(123): BASE_CMP_DragAndDropFrontendPanel->tplComponent(Array, Object(Smarty_Internal_Template)) | #4 /home/prknet/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_566db95424bb77_74034598(Object(Smarty_Internal_Template)) | #5 /home/prknet/public_html/ow_core/view_renderer.php(101): Smarty_Internal_TemplateBase->fetch('/home/prknet/pu...') | #6 /home/prknet/public_html/ow_core/renderable.php(271): OW_ViewRenderer->renderTemplate('/home/prknet/pu...') | #7 /home/prknet/public_html/ow_core/component.php(80): OW_Renderable->render() | #8 /home/prknet/public_html/ow_core/renderable.php(258): OW_Component->render() | #9 /home/prknet/public_html/ow_system_plugins/base/controllers/component_panel.php(56): OW_Renderable->render() | #10 /home/prknet/public_html/ow_core/request_handler.php(274): BASE_CTRL_ComponentPanel->render() | #11 /home/prknet/public_html/ow_core/application.php(342): OW_RequestHandler->dispatch() | #12 /home/prknet/public_html/index.php(76): OW_Application->handleRequest() | #13 {main}] [Sun Dec 13 13:30:47 2015] [ow_core_log] [Warning] Message: call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not found File: /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.php Line:67
ross Team
ross Dec 13 '15
According to the error logs, you have not indicated the right AWS key ID, please check it


as to the customize this page, please enable debug mode and click on customize this page button again to get the actual error, provide the error here so we could assist you. 

Chris
Chris Dec 14 '15
For the access key, I created a new one from IAM Managment as a user, that didnt work as well, i am still having upload errors, same issue. Maybe its my settings in the oxwall admin?



Here is the error:
Message:call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not foundFile:/home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.phpLine:67


Thank you

Chris
Chris Dec 14 '15
Here is the error when i click on customize


OW Debug - WarningMessage:call_user_func() expects parameter 1 to be a valid callback, class 'ADS_CMP_SidebarAds' not foundFile:/home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_panel.phpLine:67OW Debug - ExceptionMessage:Class ADS_CMP_SidebarAds does not existFile:/home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.phpLine:208Trace:#0 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(208): ReflectionClass->__construct('ADS_CMP_Sidebar...') #1 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(92): BASE_CMP_DragAndDropItem->checkComponent('ADS_CMP_Sidebar...') #2 /home/prknet/public_html/ow_system_plugins/base/components/drag_and_drop_frontend_panel.php(106): BASE_CMP_DragAndDropItem->setContentComponentClass('ADS_CMP_Sidebar...') #3 /home/prknet/public_html/ow_smarty/template_c/06bad7da6664aaf9e309c4185c1585accd992687.file.drag_and_drop_index_customize.html.php(123): BASE_CMP_DragAndDropFrontendPanel->tplComponent(Array, Object(Smarty_Internal_Template)) #4 /home/prknet/public_html/ow_libraries/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_566e6182c96204_98300918(Object(Smarty_Internal_Template)) #5 /home/prknet/public_html/ow_core/view_renderer.php(101): Smarty_Internal_TemplateBase->fetch('/home/prknet/pu...') #6 /home/prknet/public_html/ow_core/renderable.php(271): OW_ViewRenderer->renderTemplate('/home/prknet/pu...') #7 /home/prknet/public_html/ow_core/component.php(80): OW_Renderable->render() #8 /home/prknet/public_html/ow_core/renderable.php(258): OW_Component->render() #9 /home/prknet/public_html/ow_system_plugins/base/controllers/component_panel.php(56): OW_Renderable->render() #10 /home/prknet/public_html/ow_core/request_handler.php(274): BASE_CTRL_ComponentPanel->render() #11 /home/prknet/public_html/ow_core/application.php(342): OW_RequestHandler->dispatch() #12 /home/prknet/public_html/index.php(76): OW_Application->handleRequest() #13 {main}Type:ReflectionException

ross Team
ross Dec 14 '15

What is the exact upload errors you get?

Do you have advertisement plugin installed on your website? Is it enabled? 
Chris
Chris Dec 14 '15
I installed an ad plugin but i deleted it, quite possible its still on my server without me even realizing it. I dont get error uploads, as an example I try to add a profile picture, it goes to the cropping section and it just keeps going. But when i disable S3 images upload
ross Team
ross Dec 14 '15
Alright, one issue at a time

Ads plugin - how did you delete it? Manually or via admin panel?


Chris
Chris Dec 14 '15
Agreed, admin panel, and my FTP isnt connected, seems there are issues with that as I searched on the board. I looked in my server files I cant find any ad plugin, anything you can come up with here?


Thanks ross

ross Team
ross Dec 14 '15
as far as I understood, you deleted only the plugin folder from ow_plugins

now you need to do to you database via phpmyadmin->go to ow_base_plugins table->locate advertisement plugin there-> delete the row


then you need to delete the advertisement component from the widget tables in order to do that you need to search for these words: ADS_CMP_SidebarAds' in your database, you should come up with something like the screenshot -> click on the browser button for these tables:

ow_base_componentow_base_component_placeow_base_component_place_cacheow_base_component_position
and delete this component: ADS_CMP_SidebarAds form these tables as well, this should fix the customize this page issue. 

Attachments:
  Screenshot from 2015-12-14 13:21:08.png (389Kb)
Chris
Chris Dec 14 '15
I cant believe I forgot about phpmyadmin hah...Under ow_base_plugins there was no ad plugin,but under the component tables there was I deleted those but i am still getting the same error saying 

Class ADS_CMP_SidebarAds does not exist

ross Team
ross Dec 14 '15
then search for the ADS_CMP_SidebarAds again, there are leftovers somewhere and then follow the instructions. 

Don't forget to clear ow_base_component_cache completely. 

Chris
Chris Dec 14 '15
Do you mean this table? ow_base_component_place_cache` 




173{"defaultComponents":{"profile-BASE_CMP_RssWidget"...0
37{"defaultComponents":{"admin.dashboard-BASE_CMP_Cu...0
292{"defaultComponents":{"index-BASE_CMP_RssWidget":{...0
205{"defaultComponents":{"mobile.index-BASE_MCMP_Cust...0
281{"defaultComponents":{"dashboard-BASE_CMP_RssWidge...0With selected: Check All With selected: Change Change Delete Delete Export Export 



Completely delete all of this?

The Forum post is edited by Chris Dec 14 '15
ross Team
ross Dec 14 '15
yes, select all records and delete them
Chris
Chris Dec 14 '15
Got it, it was the cache issue, when i clicked change I saw inside the table the remainder the plugin. Thank you very much i appreciate your help so far
ross Team
ross Dec 14 '15
Great, now regarding amazon issue. 

Before you start to upload avatar open your browser console, press F12, then select console tab in the browser console and upload avatar -> do you get any kind of red errors there? if so, please provide screenshot

Chris
Chris Dec 14 '15
From Googles developer console:



ross Team
ross Dec 14 '15
Can you please try the same in your Firefox browser? 
Chris
Chris Dec 14 '15
My apologies I think this is more relevant based off of what you said
Attachments:
  devc.png (36Kb)
Chris
Chris Dec 14 '15
You mean through firebug specifically?
ross Team
ross Dec 14 '15
Ok, no need I see now on the second screenshot. 

Make sure on your server

ow_pluginfiles

ow_smarty/template_c

ow_userfiles

ow_static folder have 777 permissions and they are set recursively. 


Make sure the bucket and folder on amazon have public access. 

Pages: 1 2 »