I’ve made all the necessary changes in the theme on my local device with MAMP server running.
After uploading a theme to a digital ocean server and setting it up with server pilot – i was able to make it run, but i cannot upload or view images neither from Media library nor from a single post.
If i open up the library it just loads endlessly, if i try to upload a picture i get “An error occurred in the upload. Please try again later.”
I tried debugging and that’s what i see in the log regarding the images
“PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_image_sizes’ not found or invalid function name in /srv/users/serverpilot/apps/lundberg/public/wp-includes/plugin.php on line 213”
If i switch to a different theme everything works fine and i can upload the images easily.