Skip to content

Instantly share code, notes, and snippets.

View MaximilianoRicoTabo's full-sized avatar

Maximiliano Rico MaximilianoRicoTabo

  • -
  • Montevideo - La Paloma
  • 12:16 (UTC -03:00)
View GitHub Profile
@MaximilianoRicoTabo
MaximilianoRicoTabo / load-custom-css-level-pmpro.php
Last active July 24, 2023 15:51 — forked from kimwhite/load-custom-css-level-pmpro.php
Load custom CSS for Membership Checkout page - Paid Memberships Pro
<?php
/**
* Load custom CSS on checkout page in Paid Memberships Pro.
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function load_css_for_level_checkout(){
global $pmpro_pages;
// Change your membership level ID here.
@MaximilianoRicoTabo
MaximilianoRicoTabo / custom-level-confirmation-message-for-pmpro-approvals.php
Last active July 14, 2023 19:47 — forked from ipokkel/custom-level-confirmation-message-for-pmpro-approvals.php
Keep the custom messages set for each level under Membership >> Membership Levels and combine it with the PMPro Approvals status.
<?php
/**
* Create a custom confirmation for Approvals Add On.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
sudo gradle teamhubDebug -PhttpEnabled=true -PhttpsPort=443 -PhttpPort=80
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_6tsc5qo0u42tmnrm0t896m1uq.run(/home/maxi/projects/188/build.gradle:143)
:teamhubInitHome
Init Teamhub Home - /home/maxi/projects/188/tmp/teamhub.home_1.8.4-SNAPSHOT
:platform:core:compileJava UP-TO-DATE
:platform:core:processResources UP-TO-DATE
:platform:core:classes UP-TO-DATE
:platform:core:jar UP-TO-DATE
:platform:web:compileJava UP-TO-DATE
2017-feb-13 10:51:44,293 TeamHubHandlerExceptionResolver
ERROR Error executing request: /voteStatisticsResults.json
java.lang.ClassCastException: com.teamhub.models.node.Node_$$_javassist_57 cannot be cast to com.teamhub.plugins.ideation.models.Idea
at com.teamhub.dynatrace.ideation.manager.VoteStatisticsManager.buildVoteStatistics(VoteStatisticsManager.java:159)
at com.teamhub.dynatrace.ideation.manager.VoteStatisticsManager.getVotesRestrictedOnDate(VoteStatisticsManager.java:110)
at com.teamhub.dynatrace.ideation.controllers.VoteStatisticsController.voteStatisticsResults(VoteStatisticsController.java:56)
at com.teamhub.dynatrace.ideation.controllers.VoteStatisticsController$$FastClassByCGLIB$$10b2c4af.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at com.teamhub.infrastructure.utils.BeanUtils$SecurityInterceptor.intercept(BeanUtils.java:633)
at com.teamhub.dynatrace.ideation.controllers.VoteStatisticsController$$EnhancerByCGLIB$$3ebe9016.voteStatisticsResults(<ge
^[[A2016-Sep-24 05:00:59,119 TeamHubHandlerExceptionResolver
ERROR Error executing request: /services/v2/node/impersonate/44/fortest/voteup
org.springframework.web.bind.annotation.support.HandlerMethodInvocationException: Failed to invoke handler method [public java.lang.Object com.teamhub.plugins.impersonation.node.NodeImpersonationService.voteUp(com.teamhub.models.node.Node,java.lang.String,com.teamhub.services.v2.support.ServiceOptions)]; nested exception is java.lang.IllegalStateException: No parameter name specified for argument of type [com.teamhub.models.node.Node], and no parameter name information found in class file either.
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:181)
at com.teamhub.infrastructure.spring.TeamHubAnnotationMethodHandlerAdapter.invokeHandlerMethod(TeamHubAnnotationMethodHandlerAdapter.java:403)
at com.teamhub.infrastructure.spring.TeamHubAnnotationMethodHandlerAdapter.handle(TeamHubAnnotationMethodHandle
ERROR Column 'network6_nodes.c_activeRevision' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
2016-Sep-12 20:30:51,275 TeamHubHandlerExceptionResolver
ERROR Error executing request: /topics/test.html
org.hibernate.exception.SQLGrammarException: could not extract ResultSet
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:61)
at org.hibernate.loader.Loader.getResultSet(Loader.java:2040)
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor434.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.teamhub.infrastructure.security.RuleInvoker.invoke(RuleInvoker.java:129)
at com.teamhub.infrastructure.security.AclPermissionEvaluator.hasPermission(AclPermissionEvaluator.java:130)
at com.teamhub.aclrules.node.CommentAclRules.canView(CommentAclRules.java:211)
at sun.reflect.GeneratedMethodAccessor434.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
Exception in thread "ajp-bio-8009-exec-4" java.lang.OutOfMemoryError: Java heap space
at org.apache.commons.io.output.ByteArrayOutputStream.needNewBuffer(ByteArrayOutputStream.java:122)
at org.apache.commons.io.output.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1793)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:462)
at com.teamhub.infrastructure.servlet.TeamHubMultipartResolver.validateUpload(TeamHubMultipartResolver.java:257)
at com.teamhub.infrastructure.servlet.TeamHubMultipartResolver.resolveMultipart(TeamHubMultipartResolver.java:119)
at org.springframework.web.multipart.support.MultipartFilter.doFilterInternal(MultipartFilter.java:110)
org.springframework.web.multipart.MultipartException: Maximum file size(524.3 kB) exceeded for this post.
at com.teamhub.infrastructure.servlet.TeamHubMultipartResolver.reject(TeamHubMultipartResolver.java:341)
at com.teamhub.infrastructure.servlet.TeamHubMultipartResolver.validateUpload(TeamHubMultipartResolver.java:231)
at com.teamhub.infrastructure.servlet.TeamHubMultipartResolver.resolveMultipart(TeamHubMultipartResolver.java:119)
at org.springframework.web.multipart.support.MultipartFilter.doFilterInternal(MultipartFilter.java:110)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.context.SecurityContext
ERROR Error executing request: /admin/settings/site/plugin.idea.site.idea.html
java.lang.NullPointerException
at com.teamhub.plugins.converter.interceptors.ContentRedirectInterceptor.isContentView(ContentRedirectInterceptor.java:89)
at com.teamhub.plugins.converter.interceptors.ContentRedirectInterceptor.preHandle(ContentRedirectInterceptor.java:54)
at com.teamhub.infrastructure.plugins.mvc.PluginInterceptorStore.preHandle(PluginInterceptorStore.java:67)
at com.teamhub.infrastructure.plugins.mvc.PluginInterceptorStore$$FastClassByCGLIB$$30a6cdd9.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)